摘要: 在application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 这个方法里面写,一般放在最后 阅读全文
posted @ 2016-03-01 18:36 BlackCrown 阅读(787) 评论(0) 推荐(0) 编辑
摘要: //根据日期返回当月的天数 (频繁调用 [NSCalendar currentCalendar] 可能存在性能问题) - (NSUInteger)getDayCountWithDay:(NSDate *)date{ return [[NSCalendar currentCalendar] range 阅读全文
posted @ 2016-03-01 18:29 BlackCrown 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 一。拖4个UIButton到界面上,按所需的布局排列,为方便描述,将按钮起名为1、2、3、4.二。设置1的三个约束条件为Height 30、距离上边10、距离左边47.三。设置2的约束条件为:距离上边10。然后按着control键,鼠标点击2拉线指向1,从弹出框中(如下图)选择Equal Width... 阅读全文
posted @ 2015-11-26 21:10 BlackCrown 阅读(1958) 评论(0) 推荐(0) 编辑