iOS Navigation 使用的一些总结
摘要:1.先说添加吧 AppDelegate.h 2.自定义导航栏 自定义按钮图案 设置push返回按钮的样式 自定义标题与导航栏的样式 这是改变最上边电量图标,时间等颜色 3.关于跳转的一些总结: (1).push跳转到下一页,会带着自己导航栏一起跳,这里说的导航栏说的是他自定义的导航栏的属性 (2).
阅读全文
posted @
2017-03-17 17:23
麦芽呀~
阅读(2069)
推荐(0)
IOS 两种控制器的使用,纯代码UITabBarController 与 UINavigationController
摘要:先说简单的吧,UINavigationController代码创建非常简单,仅需一行代码 然后是重头戏,UITabBarController,我刚开始接触这个控制器是在stroryboard里面直接拖,非常简单方便,但是后来在实际项目里面这种方式是不适合的,需要用代码来创建,我的需求是做一个引导页,
阅读全文
posted @
2017-03-15 10:20
麦芽呀~
阅读(401)
推荐(0)
iOS UI控件总结(全)
摘要:1.UIButton 2.UILabel 3.UISwtich(滑块控件) 4.UISlider(开关控件) 5.UITextField(输入框) 6.UITextView(文本框) 8.UISegmentedControl 选项卡控件 9.UIPageControl 分页,与UIScrollerV
阅读全文
posted @
2017-03-15 09:57
麦芽呀~
阅读(475)
推荐(0)
IOS 参数string 转成url
摘要://参数string 转成url NSURL *url = [NSURL URLWithString:requestString]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; NSURLConnection *connection = [[NSURLConnectio...
阅读全文
posted @
2017-03-14 20:01
麦芽呀~
阅读(435)
推荐(0)
创建自己的 FrameWork(含demo)-Xcode7环境
摘要:来自:http://www.jianshu.com/p/05f078815510 制作流程,直接看原来的网页吧!
阅读全文
posted @
2017-02-21 18:53
麦芽呀~
阅读(189)
推荐(0)
UITextView 一些属性的设置
摘要:self.MyShowTextView.editable = NO; self.MyShowTextView.backgroundColor = [UIColor blackColor]; self.MyShowTextView.textColor = [UIColor whiteColor]; self.MyShowTextView.text = @"今天天气不错!";...
阅读全文
posted @
2017-02-17 14:32
麦芽呀~
阅读(116)
推荐(0)
跳转第二弹
摘要:来自:http://www.jianshu.com/p/9ded120cb5d2 (一)使用NavigationViewController进行页面跳转时,应该使用pushViewController方法来跳转至下一页面,这样的话,下一页面同样在NavigationViewController容器中
阅读全文
posted @
2017-02-16 16:45
麦芽呀~
阅读(158)
推荐(0)
iOS--圆角按钮
摘要://进入按钮 UIButton *enterMainButton = [[UIButton alloc] initWithFrame:CGRectMake(65, self.PageHeight-120,250 , 45)]; enterMainButton.layer.borderWidth = 1; enterMainButton.layer.cornerRadius...
阅读全文
posted @
2017-01-11 15:15
麦芽呀~
阅读(338)
推荐(0)
ios--万能点击事件,给label等控件添加点击事件
摘要:UITapGestureRecognizer *labelTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(labelClick)];[self.UserRate a
阅读全文
posted @
2017-01-11 15:09
麦芽呀~
阅读(477)
推荐(0)
iOS--九宫格布局
摘要:[self rankWithTotalColumns:2 andWithAppW:180 andWithAppH:170]; //九宫格布局 - (void)rankWithTotalColumns:(int)totalColumns andWithAppW:(int)appW andWithAppH:(int)appH{ //总列数 int _totalColumns = t...
阅读全文
posted @
2017-01-09 17:11
麦芽呀~
阅读(267)
推荐(0)
iOS--创建uiscrollview
摘要://创建uiscrollview self.PageHeight = self.view.bounds.size.height; self.PageWidth = self.view.bounds.size.width; self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, ...
阅读全文
posted @
2017-01-09 17:10
麦芽呀~
阅读(236)
推荐(0)
iOS--导航栏样式
摘要:push返回按钮样式: 自由点击事件: 创建左右导航栏按钮,搜索与个人中心:
阅读全文
posted @
2017-01-09 17:08
麦芽呀~
阅读(200)
推荐(0)