会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
与格律上
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2016年7月29日
Unable to simultaneously satisfy constraints.
摘要: 开发版本 7.0 @property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0); // Default YES 此属性 6.0 版本 错误提示: 解决办法: 出错的View . tr
阅读全文
posted @ 2016-07-29 11:39 与格律上
阅读(650)
评论(0)
推荐(0)
2016年6月27日
xcode - 触摸移动
摘要: 第一步 创建一个UIView类 命名MoveView 在ViewController 里面的代码有注释
阅读全文
posted @ 2016-06-27 11:30 与格律上
阅读(234)
评论(0)
推荐(0)
2016年6月26日
xcode - 移动手势
摘要: #import "ViewController.h" @interface ViewController () /** 创建一个UIView */ @property(nonatomic , weak) UIView * gestureView; @end @implementation ViewController - (void)viewDidLoad { [super...
阅读全文
posted @ 2016-06-26 21:24 与格律上
阅读(269)
评论(0)
推荐(0)
xcode -饼状进度条
摘要: 界面搭建 创建一个画饼状的类 eatView 集成UIView #import "eatView.h" @implementation eatView // Only override drawRect: if you perform custom drawing. // An empty impl
阅读全文
posted @ 2016-06-26 20:38 与格律上
阅读(400)
评论(0)
推荐(0)
2016年6月6日
xcode KVC:Key Value Coding 键值编码
摘要: 赋值 // 能修改私有成员变量 - (void)setValue:(id)value forKey:(NSString *)key; - (void)setValue:(id)value forKeyPath:(NSString *)keyPath; - (void)setValuesForKeys
阅读全文
posted @ 2016-06-06 22:42 与格律上
阅读(164)
评论(0)
推荐(0)
xcode xib 加载 、注意点
摘要: 加载xib2中方式 NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"xib名称" owner:nil options:nil]; UINib *nib = [UINib nibWithNibName:@"xib名称" bundle:nil
阅读全文
posted @ 2016-06-06 22:39 与格律上
阅读(908)
评论(0)
推荐(0)
xcode UIImage图片拉伸
摘要: 图片拉伸 +(UIImage*)wlisWithImage:(NSString *)name{ //获取图片 UIImage * img=[UIImage imageNamed:name]; //获取图片宽 CGFloat imgW=img.size.width; //获取图片高 CGFloat i
阅读全文
posted @ 2016-06-06 22:36 与格律上
阅读(477)
评论(0)
推荐(0)
xcode UIButton创建、监听按钮点击、自定义按钮 、状态 、内边距
摘要: 代码创建 //创建UIButton UIButton * btnType=[[UIButton alloc]init]; //设置UIControlStateNormal状态下的文字颜色 [btnType setTitleColor:[UIColor blackColor] forState:UIC
阅读全文
posted @ 2016-06-06 21:22 与格律上
阅读(3886)
评论(0)
推荐(0)
xcode UIImageView创建、图片加载、 音频文件播放、 延迟调用
摘要: 代码创建 /** 创建UIImageView */ UIImageView * imageView=[[UIImageView alloc]init]; /** 设置尺寸位置 */ imageView.frame=(CGRect){{50,50},{230,230}}; /** 创建图片 */ UI
阅读全文
posted @ 2016-06-06 21:15 与格律上
阅读(2377)
评论(0)
推荐(0)
xcode UILabel创建和隐藏
摘要: // 创建label UILabel *label = [[UILabel alloc] init]; // 设置显示的文字 label.text = @"Hello world!Hello world!Hello world!Hello world!"; // 设置frame label.fram
阅读全文
posted @ 2016-06-06 21:08 与格律上
阅读(783)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告