摘要:        
设计师给到的图,经常是 “按钮的左边距离文字右边5px” 这样子的标注。于是我们需要计算文字的宽度。有两种方法: 用 label 或 button 的 sizetofit 方法 [label sizeToFit];NSLog(@"label size is %@",[NSValue valueWithCGSize:label.bounds.size]);用 sizeWithAttributes...    阅读全文
        
            posted @ 2017-07-13 22:50
花老🐯
阅读(671)
评论(0)
推荐(0)
        
    
                    
                
浙公网安备 33010602011771号