greetings all,
After pulling my hair out and wearing out my keyboard searching google and the forum this is driving me nuts.
I am trying to change the text on a label with a variable that is coming from my JSON data array.
the variables show up on my output like they are supposed to but I have tried just about everything that I can find to get the label to change. I finally got it to go null and make the box disappear off the view but I cant get it to display the variable and when the output of NSLog is nothing but nul;
Here is the code
It wont take the data that is in datetime. Which I can see the JSON Data in the output window.
This is driving me nuts.... It should be a simple set of coding buts its been confusing me .
John
After pulling my hair out and wearing out my keyboard searching google and the forum this is driving me nuts.
I am trying to change the text on a label with a variable that is coming from my JSON data array.
the variables show up on my output like they are supposed to but I have tried just about everything that I can find to get the label to change. I finally got it to go null and make the box disappear off the view but I cant get it to display the variable and when the output of NSLog is nothing but nul;
Here is the code
Code:
tickdatetime.text = datetime;
NSLog(@"%@", tickdatetime);
Code:
@synthesize tickdatetime = _datetime;
- (void)viewDidLoad
{
[super viewDidLoad];
self.tickdatetime.text = datetime;
}
and in the .h file
IBOutlet UILabel *tickdatetime;
This is driving me nuts.... It should be a simple set of coding buts its been confusing me .
John