NSString
2015-08-19 20:50 dengchaojie_learner 阅读(187) 评论(0) 编辑 收藏 举报- string.uppercaseString,转换成大写
- NSLog(@"%@",NSStringFromCGRect(self.view.frame));// NSStringFromCGRect,将CGRect转成字符串
犯了一个严重的错误: //1.2 删除拓展名
NSString *imgName = [self stringByDeletingPathExtension];我写成了NSString *imgName = [self stringByDeletingLastPathComponent];// 结果是返回一个空的字符串 (an empty string)
- 打印CGRect
NSLog(@"%@", NSStringFromCGRect(mySerachview.frame));