会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Emerys
首页
新随笔
管理
上一页
1
2
3
4
5
6
2016年1月8日
UIImageView
摘要: UIImageView常用属性设置图片 @property (nullable, nonatomic, strong) UIImage *image; // default is nil设置用户交互 @property (nonatomic, getter=isUserInteractionEnab...
阅读全文
posted @ 2016-01-08 16:58 Emerys
阅读(288)
评论(0)
推荐(0)
2015年12月24日
创建cocos项目
摘要: 创建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
阅读(414)
评论(0)
推荐(0)
UITextField
摘要: UITextField常用属性边框样式 @property (nonatomic) UITextBorderStyle borderStyle;背景图(设置了边框样式,背景图就没有了) @property (nullable, nonatomic,strong) UIImage *backgroun...
阅读全文
posted @ 2015-12-24 13:38 Emerys
阅读(186)
评论(0)
推荐(0)
UILabel
摘要: UILabel常用属性 标签的文本 @property (nonatomic,copy) NSString *text;文本字体 @property (nonatomic,strong) UIFont *font;字体颜色 @property (nonatomic,strong) UIColor *...
阅读全文
posted @ 2015-12-24 11:01 Emerys
阅读(90)
评论(0)
推荐(0)
2015年12月23日
UIButton
摘要: UIButton首先需要说明UIButton继承自UIControl,UIControl继承自UIView常用属性调整titleLabel和imageView的相对位置1.2.@property (nonatomic) UIEdgeInsets titleEdgeInsets;3.@property...
阅读全文
posted @ 2015-12-23 13:41 Emerys
阅读(207)
评论(0)
推荐(0)
UIView之常用方法
摘要: UIView之常用方法将一个视图添加为子视图,并使之在最上面显示 -(void)addSubView:(UIView *)view;将指定子视图移动到顶部 -(void)bringSubViewToFront:(UIView *)view;将指定之视图放到最下面 -(void)sendSubView...
阅读全文
posted @ 2015-12-23 11:15 Emerys
阅读(141)
评论(0)
推荐(0)
UIView之常用属性
摘要: 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
阅读(149)
评论(0)
推荐(0)
2015年10月28日
AudioStreamer使用之快速点击下/上一首按钮,音频会重复的问题解决。
摘要: 针对此问题,我的做法是在AudioStreamer.h文件新加入一个属性@property (nonatomic,strong) NSURL *musicUrl;和一个单例方法:+(id)sharedStreamer;同时在AudioStreamer.m文件中实现单例方法和musicURL的set方...
阅读全文
posted @ 2015-10-28 00:27 Emerys
阅读(713)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
公告