2016年12月13日

iOS 设置 文字和 图片的位置

摘要: 1、我最开始实现这个采用的方法:重新自定义一个view,然后有两个属性label和imageView,然后设置位置布局,再添加单击手势,用代理回传点击方法。 2、第二种方法:自定义一个Button继承Button,有两个属性label和imageView,然后设置布局。这样就不用添加单击手势。 3、 阅读全文

posted @ 2016-12-13 18:04 举个例子yi聪聪 阅读(302) 评论(0) 推荐(0) 编辑

iOS button 里边的 字体的 摆放

摘要: button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; button.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0); 首先,这里使用button.tit 阅读全文

posted @ 2016-12-13 17:24 举个例子yi聪聪 阅读(121) 评论(0) 推荐(0) 编辑

导航