摘要: self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"侧栏" style:UIBarButtonItemStylePlain target:self action:@selector(click 阅读全文
posted @ 2016-03-10 22:23 小眼奇遇记 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 问题在哪?问题很多,但是有几点建议: 1、以后的应用程序,都使用AutoLayout, 不要再用绝对定位。 2、使用类似网页的方式来设计界面。 3、设计师好,程序员也好,尽量使用点这个单位进行思考,而不要使用像素。比如,你需要做44 x 66个点的按钮,2x模式,就乘以2, 3x模式就乘以3。这样的 阅读全文
posted @ 2016-03-10 20:56 小眼奇遇记 阅读(451) 评论(0) 推荐(0) 编辑
摘要: //当我们所写的程序里没用用Nib文件(XIB)时,用代码控制视图内容,需要调用initWithFrame去初始化 - (id)initWithFrame:(CGRect)frame { if (self =[superinitWithFrame:frame]) { // 初始化代码 } retur 阅读全文
posted @ 2016-03-10 19:25 小眼奇遇记 阅读(242) 评论(0) 推荐(0) 编辑