Why I can’t set title with NSString ?
- (void)viewDidLoad
{
NSString *getProvince = [NSString stringWithFormat:@"%@",g_province];
NSLog(@"getProvince %@",getProvince);
self.title = @"%@",getProvince;
[super viewDidLoad];
}
g_province is from other file (xxxx.m) and It’s NSString.
And NSLog show “getProvince 東京” and It’s correct. But it didn’t show in title.
Chnage it to : self.title = getProvince;