随笔分类 -  iOS开发之UI控件

进击的UI-------------------RAC
摘要:http://nshipster.cn/reactivecocoa/RAC 具有函数式编程和响应式编程的特性。它主要吸取了 .Net 的 Reactive Extensions 的设计和实现。一些学习资源博客 & 教程http://spin.atomicobject.com/2014/02/03/o... 阅读全文
posted @ 2015-11-21 17:22 sharkHZ 阅读(268) 评论(0) 推荐(0)
进击的UI----------------(常见快捷键的使用)
摘要:~~~~~~~~~~~~~~~~~~~~~~背景~~~~~~~~~~~~~~~~~~~~~~// 作为一名 ‘iOS开发工程师’,你应该学会熟练的使用XCode进行代码编写,所以建议大家去使用快捷键进行开发,因为:// 1. 可以让我们显得更加的专业,逼格更高// 2. 提高我们的开发效率,节省开发... 阅读全文
posted @ 2015-11-21 17:18 sharkHZ 阅读(260) 评论(0) 推荐(0)
进击的UI--------------------(邮箱,手机,车牌号验证)
摘要:#pragma mark - 私有方法#pragma mark 邮箱验证- (BOOL)isValidateEmail:(NSString *)email{ NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,... 阅读全文
posted @ 2015-11-21 17:18 sharkHZ 阅读(242) 评论(0) 推荐(0)
进击的UI---------------UIPickerView
摘要:效果图:#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil... 阅读全文
posted @ 2015-11-21 17:17 sharkHZ 阅读(144) 评论(0) 推荐(0)
进击的UI---------------------(nil Nil NULL NSNULL)
摘要:1.nil >Defines the id of a null instance. 定义一个实例为空, 指向oc中对象的空指针. >示例代码: NSString *someString = nil; NSURL *someURL = nil; id someObject = n... 阅读全文
posted @ 2015-11-21 17:17 sharkHZ 阅读(145) 评论(0) 推荐(0)
进击的UI----------------UISearchBar(搜索框)
摘要:谓词self.searchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 100, CGRectGetWidth(self.frame), 40)]; [self addSubview:_searchBar]; // 占位符 [self.s... 阅读全文
posted @ 2015-11-21 17:16 sharkHZ 阅读(159) 评论(0) 推荐(0)
进击的UI-------------------UIPageControl(滑动控制)
摘要:// UIPageControl的常用方法UIPageControl *onePageControl = [[UIPageControl alloc] init];onePageControl.frame = CGRectMake(10, 100, 300, 30); // 设置位置onePageC... 阅读全文
posted @ 2015-11-21 17:15 sharkHZ 阅读(182) 评论(0) 推荐(0)
进击的UI------------UIToolBar(bottom导航条)
摘要:1.效果2.代码 阅读全文
posted @ 2015-11-21 17:15 sharkHZ 阅读(158) 评论(0) 推荐(0)
进击的UI---------------------UIStepper(加减)
摘要:// UIStepper的常用方法UIStepper *oneStepper = [[UIStepper alloc] init];oneStepper.frame = CGRectMake(20, 20, 20, 20);oneStepper.backgroundColor = [UIColor ... 阅读全文
posted @ 2015-11-21 17:14 sharkHZ 阅读(247) 评论(0) 推荐(0)
进击的UI-----------------UIActivityIndicatorView(活动指示器)
摘要:// UIActivityIndicatorView的常用方法 活动指示器,就是旋转进度轮UIActivityIndicatorView *oneIndicatorView = [[UIActivityIndicatorView alloc] init];oneIndicatorView.activ... 阅读全文
posted @ 2015-11-21 17:13 sharkHZ 阅读(188) 评论(0) 推荐(0)
进击的UI--------------UIActionSheet(提示)
摘要:// UIActionSheet这个控件很常用,和UIAlertView类似,先附图// 添加了过多的选项,就会以列表的形式显示// 正常显示// 下面直接上代码// 注意,需要在头文件中实现UIActionSheetDelegate协议UIActionSheet *actionSheet = [[... 阅读全文
posted @ 2015-11-21 17:13 sharkHZ 阅读(122) 评论(0) 推荐(0)
进击的UI----------------UIProgressView(进度条)
摘要:// UIProgressView的使用 常用于歌曲的和下载的进度条UIProgressView *oneProgressView = [[UIProgressView alloc] init];oneProgressView.frame = CGRectMake(0, 30, 320, 30); ... 阅读全文
posted @ 2015-11-21 17:12 sharkHZ 阅读(242) 评论(0) 推荐(0)
进击的UI--------------UIAVPlayer(视频)
摘要:#import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV... 阅读全文
posted @ 2015-11-21 17:11 sharkHZ 阅读(319) 评论(0) 推荐(0)
进击的UI-------------UIAlertView(警告)
摘要:// UIAlertView的常用方法// 标准样式UIAlertView *oneAlertView = [[UIAlertView alloc] initWithTitle:@"标题" message:@"提示内容" delegate:self cancelButtonTitle:@"关闭" o... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(192) 评论(0) 推荐(0)
进击的UI---------------------UITextView(文本框)
摘要:// UITextView的常用方法 主要用来输入和显示多行文本信息UITextView *oneTextView = [[UITextView alloc] init];oneTextView.frame = CGRectMake(0, 20, 320, 200); // 设置位置oneTextV... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(210) 评论(0) 推荐(0)
进击的UI------------------UIDatePicker(时间)
摘要:{// UIDatePicker控件的常用方法 时间选择控件UIDatePicker *oneDatePicker = [[UIDatePicker alloc] init];oneDatePicker.frame = CGRectMake(0, 10, 320, 300); // 设置显示的位置和... 阅读全文
posted @ 2015-11-21 17:09 sharkHZ 阅读(142) 评论(0) 推荐(0)
进击的UI---------------UISwitch(开关)
摘要:{// UISwitch的使用UISwitch *oneSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(20, 20, 0, 0)]; // 默认尺寸为79 * 27。oneSwitch.backgroundColor = [UIColor g... 阅读全文
posted @ 2015-11-21 17:08 sharkHZ 阅读(145) 评论(0) 推荐(0)