
iOS开发UIKit的使用
该专栏主要记录UIKit的学习经历
lenn_stamp
飘飘何所似,天地一沙鸥
展开
-
OC的UI开发基础之选择器——UIPickerView和UIDatePicker
@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UIPickerView *pickerview = [[UIPickerView alloc]initWithFrame:...原创 2019-12-15 17:55:31 · 637 阅读 · 0 评论 -
OC的UI开发基础之文本视图——UITextView
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UITextView *textView = [[UITextView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.siz...原创 2019-12-15 17:28:09 · 568 阅读 · 0 评论 -
OC的UI开发基础之表视图——UITableView
/** 需要遵循如下两个协议 */@interface ViewController ()<UITableViewDelegate, UITableViewDataSource> { UITableView* tableview_; NSMutableArray* members_;//数据源:联系人模型 NSIndexPath* selectedinde...原创 2019-12-15 16:57:44 · 647 阅读 · 0 评论 -
OC的UI开发基础之滚动视图——UIScrollView
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. _scrollView = [[UIScrollView alloc]initWithFrame:self.view.frame]; _scrollView.backgroundC...原创 2019-12-15 15:54:42 · 818 阅读 · 0 评论 -
OC的UI开发基础之警告提示框——UIAlertController
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view.}- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { /** ...原创 2019-12-15 15:38:32 · 845 阅读 · 0 评论 -
OC的UI开发基础之翻页控制器和步进控制器——UIPageControl和UIStepper
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. /** 分页控制器 */ //初始化-一个分页控制器 UIPageControl * page = [[UIPageControl alloc] ini...原创 2019-12-15 14:40:00 · 369 阅读 · 0 评论 -
OC的UI开发基础之指示器与进度条——UIActivityIndicatorView和UIProgressView
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //初始化一个指示器 UIActivityIndicatorView *actview = [[UIActivityIndicatorView alloc]initWithFram...原创 2019-12-15 12:17:39 · 624 阅读 · 0 评论 -
OC的UI开发基础之滑块控制——UISlider
@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //创建UISlider控件对象 UISlider * slider = [[UISlider alloc ]ini...原创 2019-12-15 00:18:12 · 720 阅读 · 0 评论 -
UIKit中的文本输入UITextField
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UITextField* uf = [[UITextField alloc]initWithFrame:CGRectMake(20, 100, 200, 50)]; //设置出事...原创 2019-12-15 00:00:22 · 515 阅读 · 0 评论 -
UIKit中的选择开关UISegmentedControl与UISwitch使用
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UISegmentedControl* seg = [[UISegmentedControl alloc]initWithItems:@[@"一",@"二",@"三",@"四",@"五"]...原创 2019-12-14 22:49:04 · 312 阅读 · 0 评论 -
UIKit中的搜索栏UISearchBar使用
UISearchBar分为背景和搜索栏- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //搜索框 UISearchBar* sh = [[UISearchBar alloc]initWithFrame:CGRectMake...原创 2019-12-14 22:26:07 · 523 阅读 · 0 评论 -
UIKit中的图片视图UIImageView使用
@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //创建图片视图 UIImageView *mageView = [[UIImageView alloc]...原创 2019-12-14 22:00:16 · 449 阅读 · 0 评论 -
UIKit的视图UIView介绍
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. UIButton* btn = [UIButton buttonWithType:UIButtonTypeSystem]; /**UIButtonType常用风格 ...原创 2019-12-14 21:35:44 · 904 阅读 · 0 评论 -
UIKit的简单入门介绍
后续文章将进行IOSUI开发的介绍。第一个则是基础控件——标签- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //初始化一个label UILabel* lab = [[UILabel alloc]initWithFram...原创 2019-12-14 18:28:30 · 2980 阅读 · 0 评论