I have a ViewController, i declare NSString *xTitle at the top in testViewController.m file
when i set the xTitle=@"anytext" in viewload event; and i tap a button, it shows the UIActionsheet.
i try to read xTitle in UIActionSheet's clickedButtonAtIndex. i see the xTitle's value "anytext", its ok.
but when i set the xTitle from NSDictionary, it says Invalid.
viewload event;
NSDictionary *results = [jsonString JSONValue];
xTitle = [results valueForKey:@"ContentURL"];
NSLog(@"%@", xTitle);
--> it writes the value
but i cant read xTitle in uiactionsheet events. it says invalid.
why does it say "Invalid"?