07 2016 档案

摘要://设置UIImage的圆角 + (UIImage *)imageNamed:(NSString *)name size:(CGSize)size cornerRadius:(CGFloat)cornerRadius { UIImage *image = [UIImage imageNamed:na 阅读全文
posted @ 2016-07-27 17:22 阿法狗的世界 阅读(105) 评论(0) 推荐(0)
摘要:Masonry是一个轻量级的布局框架与更好的包装AutoLayout语法。 Masonry有它自己的布局方式,描述NSLayoutConstraints使布局代码更简洁易读。 Masonry支持iOS和Mac OS X。 Masonry github 地址:https://github.com/Sn 阅读全文
posted @ 2016-07-18 22:06 阿法狗的世界
摘要:NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSString *strDate = [dateFormat 阅读全文
posted @ 2016-07-13 00:41 阿法狗的世界 阅读(131) 评论(0) 推荐(0)
摘要:-(instancetype)initWithFrame:(CGRect)frame{ if (self=[super initWithFrame:frame]) { self.userInteractionEnabled=NO; [self setBackgroundImage:[UIImage 阅读全文
posted @ 2016-07-08 16:39 阿法狗的世界 阅读(330) 评论(0) 推荐(0)
摘要://并不是所有的类都可以调用appearance这个方法 需要遵循这个外观这个协议 但是 第一种是全部类型 第二种是当前类的类型 逻辑要严谨 UITabBarItem *item=[UITabBarItem appearance]; UITabBarItem * item=[UITabBarItem 阅读全文
posted @ 2016-07-07 00:52 阿法狗的世界
摘要:UIViewController * home=[[UIViewController alloc]init]; home.tabBarItem.title=@"首页";//设置tabBar的标题 经常忘记 self.viewControllers //设置图片不渲染 +(instancetype)i 阅读全文
posted @ 2016-07-06 23:21 阿法狗的世界 阅读(137) 评论(0) 推荐(0)
摘要:#import <UIKit/UIKit.h>@class CZFriendGroup;@class CZHeaderView;@protocol CZHeaderViewDelegate <NSObject>@optional- (void)headerViewDidClickedNameView 阅读全文
posted @ 2016-07-04 15:25 阿法狗的世界 阅读(93) 评论(0) 推荐(0)