摘要: 一、UIImageView 的 initWithImage:方法 1、问题 看到有人讨论,为什么这样创建了一个UIImageView,会没显示,代码如下: UIImageView * imageView = [[UIImageView alloc]init]; imageView.image = [ 阅读全文
posted @ 2016-10-08 17:58 yuqun114 阅读(125) 评论(0) 推荐(0)
摘要: 一、问题 某些需求需要用到button 和 label,并且需要同一行对齐,例如某个提示栏,上面有一部分提示文字不可点击,但是有一部分文字可以点击并跳转。因此通过 sizeWithAttributes 或者其他系统方法计算字符串size,然后设置button的大小为对应title计算出来的大小,la 阅读全文
posted @ 2016-09-26 18:02 yuqun114 阅读(321) 评论(0) 推荐(0)