- 博客(8)
- 问答 (1)
- 收藏
- 关注
原创 UI基础学习之(十一):UIScrollView
UIScrollView是可以滚动的View,UIView本身不能滚动,子类UIScrollView拓展了滚动的功能。UIScrollView是所有滚动视图的基类。UITableView、UITextView等都继承于该类。使用场景:显示不下(单张大图);内容太多(图文混排);滚动头条(图片);相册等。UIScrollView主要专长于两个方面:滚动:contentSize大于fr
2015-12-08 14:23:16
346
原创 UI基础学习之(十):UIPageControl
PageControl一般和ScrollView配合使用 //创建pagecontrolself.pageControl = [[[UIPageControl alloc] init] autorelease];//设置在屏幕的底端self.pageControl.frame = CGRectMake(0, CGRectGetMaxY(self.frame) - 50, CGR
2015-12-08 14:17:27
327
原创 UI基础学习之(九):UISlider
UISlider是iOS中的滑块控件。通常用于控制视频播放进度,控制⾳音量等。它也是继承于UIControl,滑块提供了一系列连续的值,滑块停在不同的位置,获取到滑块上的值也不同。 创建Sliderself.slider = [[[UISlider alloc] init] autorelease];self.slider.frame = CGRectMake(50,
2015-12-08 14:13:13
404
原创 UI基础学习之(八):UISegmentedControl
UISegmentedControl是iOS中的分段控件。每个segment都能被点击,相当于集成了若干个button。通常我们会点击不同的segment来切换不同的view。 //创建UISegmentedControlNSArray * dataArray = @[@"first", @"second", @"third"];self.seg = [[UISegment
2015-12-08 14:10:23
361
原创 UI基础学习之(七):UIViewController
一、视图控制器的创建:作用:管理view文件:UIViewController、UIView创建RootViewController,继承于UIViewController创建RootView,继承于UIView在MRC下创建步骤:1、在RootView.m中声明指定初始化方法:- (instancetype)initWithFrame:(CGRect)frame{
2015-12-08 14:04:33
475
原创 UI基础学习之(六):程序的启动过程
在iOS中程序的启动过程如下:程序启动过程- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFr
2015-12-08 13:54:17
339
原创 UI基础学习之(五):UIButton
Button的创建可以使用类方法UIButton * b1 = [UIButton buttonWithType:UIButtonTypeSystem];b1.frame = CGRectMake(100, 100, 100, 100);b1.backgroundColor = [UIColor cyanColor];[self.window addSubview:b1];
2015-12-08 13:47:29
312
原创 UI基础学习之(四):UITextFiled Delegate
UITextFile还拥有自己的代理,用来监听和输入相关的操作: 创建代理UITextField * tf1 = [[UITextField alloc] init]; tf1.frame = CGRectMake(50, 50, 200, 50); tf1.backgroundColor = [UIColor yellowColor]; //
2015-12-08 13:42:34
430
空空如也
C语言中:二维数组能否作为函数参数,如何定义?
2015-08-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人