我正在从JSON
文件中引入一些数据,并且我想将字体更改为,courier
但是当我尝试执行以下操作时,出现此错误:"Property 'font' not found on object NSString"
. 有没有办法解决?
NSString *timePeriod = [diction objectForKey:@"Time Period"];
UIFont *changeFont = [UIFont fontWithName:@"Courier" size:12];
timePeriod.font = changeFont;