-1

in my ViewController and Main storyboard I'm trying to load a custom view (LogView) programmatically from .xib. when the "Next" button is pressed a text supposed to appear in the custom sub view (myView). the "DidReceiveJSON" method suppose to load the custom view. This is how my LogView looks like and the "Display" method suppose to update the "myLog" UIlabel.

EveryThing was working when "MyLog" view only contained a UIView and a UILabel. but I wanted to add a UIScrollView because the label grows every time "Next" button is pressed. So now when I press the "Next" button nothing is happening in the simulator.

could you please help me figure out what I'm doing wrong?


sorry for not uploading images, but I'm not allowed to upload any images due to my low rank. I did uploaded links to the images and will gladly add any info if needed

alex1988
  • 9
  • 6

1 Answers1

0

Please check if you have connected outlet of MyLog UILabel with File's Owner in the xib. Check if the label is nil or not.

Anirban iOS
  • 957
  • 7
  • 14
  • couldn't upload another link due to my low rank :(. here is the pic link https://s14.postimg.org/6631wqkqp/Screen_Shot_2016_12_03_at_2_53_13_PM.png – alex1988 Dec 03 '16 at 13:07
  • I putted a break point to see if myLabel gets assigned and everything is ok with it(not nil and it's content is the right one). but I don't really fully understand the file's owner part. who should be the owner? in my xib it's the viewController right now. I added a link to the xib file's owner part in the comment above – alex1988 Dec 03 '16 at 13:43