objective c - iOS xcode re-using tableview -


can please explain how re-use tableview controller different information each button selected, see picture.

enter image description here

basically user tap select button presents appropriate table view populated data, choose item return symbol browser , have "select" button change users selection table view.

each "select" button need have different information in tableview.

can provide me links on this? sorry still grasping objective-c.

you can declare property in tableviewcontroller.h

@property(nonatomic,assign) int viewloadfor 

initialise property when navigate tableviewcontroller

and check value of viewloadfor in tableviewcontroller , load tableview according that

eg.

if(viewloadfor == 1){ tableviewarray = @[@"hello",@"hello1"]; } else if(viewloadfor == 2){ tableviewarray = @[@"bye",@"bye1"]; } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -