摘要: 在一些项目中,我们需要自定义自己的UIButton,使Button上面同时具有图片和文字描述,实现自定义UIButton的图文混排。 首先我们需要定义一个继承自UIButton的类,同时实现自己的initWithFrame:方法。方法声明在这个类的头文件中。 self = [super initWi 阅读全文
posted @ 2016-03-09 10:49 七枷社 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: 自定义导航栏的字体和颜色,只需要自定义一个lable,然后将lable添加到导航栏的titleview中就可以了 代码如下 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,0,0)];//这个frame是初设的,没关系,后 阅读全文
posted @ 2016-02-15 20:28 七枷社 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 最近使用mac上的office,发现一个问题,每次打开office11都会报错,提示“无法打开文件Normal.dotm,因为内容有错误”,于是就在网络上搜索了一下,找到如下一段话, I just found out that my kids were playing on my computer 阅读全文
posted @ 2016-02-04 16:46 七枷社 阅读(1943) 评论(0) 推荐(0) 编辑
摘要: 在xocde7下没有libsqlite3.dylib,只有libsqlite3.tbd,然后我导入了tbd。编译报错error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bi 阅读全文
posted @ 2016-02-04 15:02 七枷社 阅读(1513) 评论(0) 推荐(0) 编辑