摘要: Top Layout Guide用于自动布局的辅助,在Storyboard中可以看到Top Layout Guide作为ViewController的属性存在,也就是topLayoutGuide,官方文档对这个属性的Discussion是: topLayoutGuide属性表示不希望被透明的状态栏或 阅读全文
posted @ 2016-04-27 16:40 半窗疏影 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 接着上一篇文章, 自动生成framework,这篇文章我把shell自动化打包ipa整理了一下,希望大家喜欢,嘿嘿。。 建议大家先看一下上一篇文章。 http://www.xuanyusong.com/archives/2720 首先我们要先搞清楚nity全自动打包的重要步骤。 1.自动生成xcod 阅读全文
posted @ 2016-04-25 17:15 半窗疏影 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 转载自_臣本布衣的博客 http://blog.sina.com.cn/haohaodecuicui 使用Unity 3D开发iOS游戏入门教程 (2013-09-04 16:59:38) Unity是目前最热门的游戏引擎之一,理由很充分——Unity具有强大的视觉编辑器,新手容易入门;功能丰富且强 阅读全文
posted @ 2016-04-25 17:09 半窗疏影 阅读(1653) 评论(0) 推荐(0) 编辑
摘要: iOS开发UI篇—UIScrollView控件实现图片轮播 一、实现效果 实现图片的自动轮播 二、实现代码 storyboard中布局 代码: 提示:以下两个属性已经和storyboard中的控件进行了连线。 @property (weak, nonatomic) IBOutletUIScrollV 阅读全文
posted @ 2016-03-16 17:25 半窗疏影 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1、获取需要解析的文件或URL 2、把获取的数据转化为data 3、初始化解析对象(NSXMLParser)并设置delegate 4、实现praser的代理方法 . NSXMLParsr 的解析方法 1、开始准备解析 -(void)parserDidStartDocument:(NSXMLPars 阅读全文
posted @ 2016-02-23 17:21 半窗疏影 阅读(119) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(30, 30, 100, 300)]; label.text = @"jvhhhhhhhhhhhhhhuuuuuuuuuvttttttttt"; //设置label的边框宽度 l... 阅读全文
posted @ 2015-11-23 08:46 半窗疏影 阅读(113) 评论(0) 推荐(0) 编辑
摘要: UIButton *but = [[UIButton alloc]init]; but.frame = CGRectMake(30, 30, 100, 100); //设置button的颜色 //but.backgroundColor = [UIColor redColor]; //设置bu... 阅读全文
posted @ 2015-11-22 12:57 半窗疏影 阅读(140) 评论(0) 推荐(0) 编辑
摘要: UISegmentControl1、 初始化:UISegmentedControl *seg =[[UISegmentedControl alloc] initWithFrame:CGRectMake(30, 100, 200, 40)];//创建时初始化大小,但是不设置每段的参数UISegment... 阅读全文
posted @ 2015-11-14 13:02 半窗疏影 阅读(172) 评论(0) 推荐(0) 编辑
摘要: UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom]; [but setTitle:@"测试一下" forState:UIControlStateNormal]; NSLog(@"****%@",[button currentTi... 阅读全文
posted @ 2015-11-12 17:07 半窗疏影 阅读(276) 评论(0) 推荐(0) 编辑
摘要: UItextField通常用于外部数据输入,以实现人机交互。1、[field setBorderStyle:UITextBorderStyleBezel];//设置边框类型(field代表UITextField对象),UITextBorderStyleBezel(带有边框,且有内嵌效果)、UITex... 阅读全文
posted @ 2015-11-12 13:38 半窗疏影 阅读(199) 评论(0) 推荐(0) 编辑