解决方案 »
- iOS json数据传输问题
- 关于objective-c函数参数如何地址传递
- 字串/队列/指针的问题
- Xcode中怎么实现倒计时和自动转盘功能,求代码
- 请问UITableViewController中怎么把Button放最上面。
- Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CG
- ios8 应用使用cordova3.8 的camera插件,无法拍照
- ios中tableviewcell中文字加多图怎么做
- iOS UI小案例设计
- 怎么给图片命名呢
- UIAlertView UITapGestureRecognizer 点击窗口之外区域关闭
- 求助贴,请大哥们帮忙看下为什么类的对象数组在tableview显示不出
和nameLabel1.lineBreakMode = NSLineBreakByWordWrapping;
这个我试过了,没用啊
果然,我用的是iOS8,iOS6和iOS8都正常,iOS7.1估计是Bug了
UIFont* font = [UIFont systemFontOfSize:14.f];
NSMutableParagraphStyle* style = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
style.alignment = self.userSelectedTextAlignment;
style.lineBreakMode = NSLineBreakByCharWrapping;
NSMutableDictionary* textAttributes = [NSMutableDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName
, style, NSParagraphStyleAttributeName
, [UIColor blackColor], NSForegroundColorAttributeName, nil];