iphone - Calling cellForRowAtIndexPath through an instance -


i wondering if following scenario possible. have uitableviewcontroller class contains ten rows displaying data. now, want show first 5 rows in 1 tableview , last 5 in another. since don't want fetch data again hoping create instance of original table class , call cellforrowatindexpath:(nsindexpath*)indexpath return table cells , add other 2 table views. possible call delegate method through instance? if so, how can create nsindexpath object pointing particular row in section of table...

thanks replies. tried calling cellforrowatindexpath:(nsindexpath*)indexpath shows following warning

'rootviewcontroller' may not respond '-cellforrowatindexpath:' 

also application crashes message

 ***terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[rootviewcontroller cellforrowatindexpath:]: unrecognized selector sent instance 0x4bad30' 

had initialized nsindexpath andrei described. guess not possible call function.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -