iphone - iOS - UITableView delegate not being set? -
the uitableview object have in storyboard theoretically should have delegate set, not. dragged uitableview object storyboard header , added iboutlet property , synthesized it. however, checked , only data source method being called. seems wrong way i'm implementing main delegate protocol. can see in images below, seem doing standardly? delegate not being set still! thoughts?
i think reason solution not working because using tableview inside of uiviewcontroller instead of uitableviewcontroller. had same issue while back. here did. create iboutlet header file , synthesize in implementation file (i believe have completed step). go storyboard. control + click
on table view , drag connector view controller (the yellow circle white box). select datasource. repeat step again , instead of selecting datasource select delegate. in menu on right-hand side should able see outlets if set correctly. should fix delegate problems.
see screenshot example below:
Comments
Post a Comment