![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI基础
文章平均质量分 74
Mr_Ge_Lin
专业技能IOS,熟悉web前端、MySQL、java技能
展开
-
AppDelegate.h/.m文件的作用
一.AppDelegate.h/.m文件的作用 作用:主要用来委托代理的作用。1.AppDelegate.m中的方法: (1).程序启动完成的方法:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOption原创 2016-02-23 14:44:42 · 1020 阅读 · 0 评论 -
UIView
一、创建window对象1.设置尺寸self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];注: [UIScreen mainScreen].bounds屏幕的尺寸2.设置背景颜色self.window.backgroundColor = [UIColor yellowCol原创 2016-02-23 14:48:29 · 279 阅读 · 0 评论 -
基本控件
一、标签( UILabel)1.创建标签UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, self.window.frame.size.width, 40)];label.backgroundColor = [UIColor blackColor];2.设置文字 label.text = @“男神原创 2016-02-23 14:55:18 · 260 阅读 · 0 评论 -
图片动画
一、UI中图片动画的制作1.现在准备一组连续的图片 2.创建一个图片视图(UIImageView)UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.window.bounds];imageView.tag = 1001;//设置tag值[imageView setImage:[UIImage原创 2016-02-23 14:57:48 · 371 阅读 · 0 评论 -
事件手势,手势
1.开始触摸事件:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"开始触摸%@", event);}2.正在触摸事件:- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { N原创 2016-02-23 15:02:32 · 287 阅读 · 0 评论 -
UIScrollView、UIPageControl
一、UIScrollView// 创建scrollview UIScrollView *scrollview = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, self.view.frame.size.width, 600)]; scrollview.backgroundColor = [UIColor y原创 2016-02-23 16:30:00 · 242 阅读 · 0 评论 -
UISegmentedControl、UISwitch、UISlider
一、UISegmentedControl1.效果图: 2.创建UISegmentedControl:UISegmentedControl *seg = [[UISegmentedControl alloc] initWithItems:@[@"Red", @“Yellow”,@"hh",@"fw"]];seg.frame = CGRectMake(0, 20, self.原创 2016-02-23 16:32:16 · 303 阅读 · 0 评论