摘要:
UITabBarController和UINavigationController类似,UITabBarController也可以轻松地管理多个控制器,轻松完成控制器之间的切换。#import "AppDelegate.h"#import "ViewController.h"#import "Sec...
阅读全文
posted @ 2015-11-26 15:57
子嫣然兮
阅读(159)
推荐(0)
摘要:
一、UITableView动态存放#import "ViewController.h"@interface ViewController (){ UITableView *tableview; NSMutableArray *_arr;//盛放要显示的东西}@end@implementation V...
阅读全文
posted @ 2015-11-19 17:54
子嫣然兮
阅读(187)
推荐(0)
摘要:
一、基本知识点UITableView表格视图,是一个可以滚动的界面(理解为垂直滚动的UIScrollView),可展示多行数据,没有行数的限制,只能有一列。使用UITableView:1、展示信息,显示大量的列表数据2、导航通常选择单元格导航至另一界面。主界面是tableview,通常是导航界面(n...
阅读全文
posted @ 2015-11-19 17:53
子嫣然兮
阅读(163)
推荐(0)
摘要:
一、基本知识#import "ViewController.h"@interface ViewController (){ UIScrollView *scrollview; UIPageControl *page;}@end@implementation ViewController- (void...
阅读全文
posted @ 2015-11-19 17:50
子嫣然兮
阅读(181)
推荐(0)
摘要:
一、基本知识1、初始化 UIScrollView#import "ViewController.h"#define WIDTH[[UIScreen mainScreen]bounds].size.width#define HEIGHT[[UIScreen mainScreen]bounds].siz...
阅读全文
posted @ 2015-11-19 17:47
子嫣然兮
阅读(186)
推荐(0)
摘要:
一、UIAlertView、 UIActionSheet都是ios系统自带的弹出式对话框,当UIAlertView或UIActionSheet弹出来时用户无法与应用界面中的其它控件交互,UIAlertView与AUIctionSheet最大的区别在于UIAlertView是表现为显示在屏幕中央的弹出...
阅读全文
posted @ 2015-11-17 18:13
子嫣然兮
阅读(182)
推荐(0)
摘要:
一、UISwitch1、初始化UISwitch *s1 = [[UISwitch alloc]initWithFrame:CGRectMake(50, 170, 100, 200)];2、设置相关属性s1.onTintColor = [UIColor blueColor];s1.tintColor ...
阅读全文
posted @ 2015-11-14 19:50
子嫣然兮
阅读(423)
推荐(0)
摘要:
一、由于IOS中的UITextField不支持文本换行,在需要换行的时候。我们可以用UITextView来解决这一问题。二、创建步骤1、初始化并设置位置和大小UITextView *textView = [[UITextViewalloc] initWithFrame:CGRectMake(20, ...
阅读全文
posted @ 2015-11-11 17:12
子嫣然兮
阅读(160)
推荐(0)
摘要:
UITextField继承自UIControl一、UITextField的初始化和设置1、初始化并设置位置和大小UITextField *field = [[UITextField alloc]initWithFrame:CGRectMake(90, 280, 200, 30)];2、设置属性fie...
阅读全文
posted @ 2015-11-11 17:11
子嫣然兮
阅读(350)
推荐(0)
摘要:
一、UILabel1、UILabel:标签,主要用来显示文字。创建步骤:(1)开辟空间并初始化(如果本类有初始化方法,使用自己的,否则,使用负父类的)。UILabel *textLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 280, 10...
阅读全文
posted @ 2015-11-10 17:02
子嫣然兮
阅读(381)
推荐(0)