黄花菜
黄花菜
补充一句,用Masonry布局的,确认是kCTTextAlignmentCenter,没用错,作者试一下吧
- (TYAttributedLabel *)protocolLabel { if (_protocolLabel == nil) { _protocolLabel = [[TYAttributedLabel alloc] init]; _protocolLabel.backgroundColor = [UIColor clearColor]; _protocolLabel.textAlignment = kCTTextAlignmentCenter; _protocolLabel.preferredMaxLayoutWidth = [UIScreen mainScreen].bounds.size.width; _protocolLabel.delegate = self; NSMutableAttributedString *attributedString...
@12207480 是这么写的,有问题吗,朋友
@12207480 不行啊,朋友,我的布局代码是在layoutSubviews里写的
@xiaoerlong 没解决,不用了,换别的方式了
程序一开启的时候讲plist加载到内存中,以后调用直接从内存中取
同问
或者如何自定义menuview,请指教,谢谢
还望指教,谢谢