摘要: UIImageView常用属性设置图片 @property (nullable, nonatomic, strong) UIImage *image; // default is nil设置用户交互 @property (nonatomic, getter=isUserInteractionEnab... 阅读全文
posted @ 2016-01-08 16:58 Emerys 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 创建cocos项目进入终端输入命令: cocos new HelloCpp -p com.cocos.org -l cpp -d /Users/emerys/documents/cocos参数说明: HelloCpp为项目名称-p后面接包名,此为android下项目包名-l后面接开发语言名,有cpp... 阅读全文
posted @ 2015-12-24 16:05 Emerys 阅读(401) 评论(0) 推荐(0) 编辑
摘要: UITextField常用属性边框样式 @property (nonatomic) UITextBorderStyle borderStyle;背景图(设置了边框样式,背景图就没有了) @property (nullable, nonatomic,strong) UIImage *backgroun... 阅读全文
posted @ 2015-12-24 13:38 Emerys 阅读(178) 评论(0) 推荐(0) 编辑
摘要: UILabel常用属性 标签的文本 @property (nonatomic,copy) NSString *text;文本字体 @property (nonatomic,strong) UIFont *font;字体颜色 @property (nonatomic,strong) UIColor *... 阅读全文
posted @ 2015-12-24 11:01 Emerys 阅读(87) 评论(0) 推荐(0) 编辑
摘要: UIButton首先需要说明UIButton继承自UIControl,UIControl继承自UIView常用属性调整titleLabel和imageView的相对位置1.2.@property (nonatomic) UIEdgeInsets titleEdgeInsets;3.@property... 阅读全文
posted @ 2015-12-23 13:41 Emerys 阅读(201) 评论(0) 推荐(0) 编辑
摘要: UIView之常用方法将一个视图添加为子视图,并使之在最上面显示 -(void)addSubView:(UIView *)view;将指定子视图移动到顶部 -(void)bringSubViewToFront:(UIView *)view;将指定之视图放到最下面 -(void)sendSubView... 阅读全文
posted @ 2015-12-23 11:15 Emerys 阅读(137) 评论(0) 推荐(0) 编辑
摘要: UIView之常用属性1. view.tag = 200; // 系统保留0~1002. view.frame = CGRectMake(20, 30, 300, 300);3. view.center = self.view.center;4. view.backgroun... 阅读全文
posted @ 2015-12-23 00:01 Emerys 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 针对此问题,我的做法是在AudioStreamer.h文件新加入一个属性@property (nonatomic,strong) NSURL *musicUrl;和一个单例方法:+(id)sharedStreamer;同时在AudioStreamer.m文件中实现单例方法和musicURL的set方... 阅读全文
posted @ 2015-10-28 00:27 Emerys 阅读(707) 评论(0) 推荐(0) 编辑