objective c - iOS xcode re-using tableview -
can please explain how re-use tableview controller different information each button selected, see picture.
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
Post a Comment