ios - Why won't my IBOutlets show up in my list of Outlets in Interface Builder? -
i have code reflects answer connect uilabel in interface builder , xcode?.
in 1 view controller have several uilabels text set other methods have written in viewdidload. has worked fine, today tried adding couple more labels in same fashion , can't references show in outlets list in interface builder. how identical code not work in same view controller?
1) make sure have written iboutlet property correctly,
2) file's owner custom class of .xib should viewcontroller class
3) if right click on file's owner listed under placeholders, iboutlet mylabel should there,
4) , make sure have connected iboutlet uilabel.
5) set text of label viewdidload method,
Comments
Post a Comment