Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tusharsquad

macrumors newbie
Original poster
Apr 23, 2010
7
0
hi ,

I have added a table as subview to mainview and added UITableViewDelegate to respond the events and made it's delegat to self

it is working fine and data also loading


But i want to select first row as Default select and should be highlighted
i know code to select first row
that is

NSIndexPath *ip=[NSIndexPath indexPathForRow:0 inSection:0]
[tblview selectRowAtInedexpath:ip ..............];

But where i will have to write this code

PLZ help me
 
Sheesh you are a bad listener.

But I'll throw you a bone, even though I doubt you'll read a single reply even after 3 previous posts.

You obviously have to connect the method to an event, which is probably table onLoad or something. I quit programming on iPhone a year ago.

But hey in all honesty, if you don't know where to place the method, then you are in way over your head.
 
Re

Thank's for suggestion

But for your kind information
there is no method called table onLoad or table DidLoad or like that

OK ????
 
You're making me bust out xcode for the first time in over a year.

The key here is to tie the method to an event. If the table is load when the view is load, then you should put the highlight method in one of the default methods for tableview.

Best is to seek help in the right spot, my half ass attempt won't help you.

https://forums.macrumors.com/forums/135/
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.