iOS-UI
文章平均质量分 80
_1ceGh0st
这个作者很懒,什么都没留下…
展开
-
iOS--UIImageView的使用方法详细
// UIImageView的常用方法 UIImage *oneImage = [UIImage imageNamed:@"max.png"]; // 使用ImageView通过name找到图片 UIImageView *oneImageView = [[UIImageView alloc] initWithImage:oneImage]; //把oneImage添原创 2014-11-29 09:43:29 · 355 阅读 · 0 评论 -
iOS--UIViewController生命周期
#import "DetailViewController.h"@interface DetailViewController ()@end@implementation DetailViewController#pragma mark - 视图控制器对象的初始化方法- (id)initWithNibName:原创 2014-11-29 10:10:16 · 392 阅读 · 0 评论 -
iOS--如何把你自己的应用程序的设置集合到系统的设置页面中
// 这部分的知识点不难,但是比较麻烦,需要耐心操作// 首先给大家看下效果图,就是让自己的应用程序在设置页面中占一个cell,进入后可以设置应用,如图所示:// 设置页面中的图, 最下面的两个Cell都是我们自己的应用程序// 点击NSUserDefaults进入后的样式// 这是关于页面,这个关于设置有原创 2014-11-29 10:15:37 · 626 阅读 · 0 评论 -
iOS--UILabel的使用方法详细
//UILabel的使用 UILabel *oneLabel = [[UILabel alloc] init]; // 最经常使用的 oneLabel.frame = CGRectMake(0, 0, 320, 200); // 设置oneLabel的位置和大小 oneLabel.text = @"我是一个UILabel哦,"; // 设置one原创 2014-11-29 09:39:02 · 322 阅读 · 0 评论 -
iOS--关于屏幕的方向
#pragma mark - 重写屏幕方向发生改变触发的方法- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { // 判断为横屏或者竖屏 if (原创 2014-11-29 10:04:03 · 411 阅读 · 0 评论 -
iOS--UIPikcerView的联动选择
// 主要代码// 效果图 //#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController原创 2014-11-29 10:06:59 · 583 阅读 · 0 评论 -
iOS--UIButton的使用方法详细
// UIButton的常用方法 UIButton *oneButton = [UIButton buttonWithType:UIButtonTypeCustom]; // 初始化时设置Button样式 // 风格有如下// typedef enum {// UIButtonTypeCustom = 0, /原创 2014-11-29 09:39:53 · 338 阅读 · 0 评论 -
iOS--UIScrollView和UIPageControl配合使用完成引用介绍页面
// 效果图// 直接代码// 头文件//// RootViewController.h// UIScrollView//// Created by LiZe on 13-9-6.// Copyright (c) 2013年 BlackCode. All rights reserved.原创 2014-11-29 10:11:44 · 515 阅读 · 0 评论 -
iOS--UIActivityIndicatorView的使用方法详细
// UIActivityIndicatorView的常用方法 活动指示器,就是旋转进度轮 UIActivityIndicatorView *oneIndicatorView = [[UIActivityIndicatorView alloc]init]; oneIndicatorView.activityIndicatorViewStyle = UIActivityI原创 2014-11-29 09:59:27 · 534 阅读 · 0 评论 -
iOS--UITableView Grouped样式详细代码
// 代码中注释很清晰,直接上代码// 头文件//// GroupTableViewController.h// UITableViewGroup//// Created by LiZe on 13-9-5.// Copyright (c) 2013年 BlackCode. All rights reser原创 2014-11-29 10:09:15 · 597 阅读 · 0 评论 -
iOS--UITextFiled的使用方法详细
// UITextField的常用方法 UITextField *oneTextField = [[UITextField alloc] init]; // 最常用 oneTextField.frame = CGRectMake(30, 30, 260, 35); // 设置位置 oneTextField.background原创 2014-11-29 09:41:51 · 491 阅读 · 0 评论 -
iOS--UIProgressView的使用方法详细
// UIProgressView的使用 常用于歌曲的和下载的进度条 UIProgressView *oneProgressView = [[UIProgressView alloc] init]; oneProgressView.frame = CGRectMake(0, 30, 320, 30); // 设置UIProgressView的位置和大小 o原创 2014-11-29 09:55:08 · 380 阅读 · 0 评论 -
iOS--UIDatePicker 时间选择器 的使用方法详细
// 主要有下面四种类型:// 日期显示、时间选择器 的使用方法详细" title="IOS--UIDatePicker 时间选择器 的使用方法详细" style="margin:0px; padding:0px; border:0px; list-style:none">// 日期和时间显示、时间选择器 的使用方法详细" title="IOS--UIDatePic原创 2014-11-29 10:01:16 · 675 阅读 · 0 评论 -
iOS--UIAlertView的使用方法详细
// UIAlertView的常用方法 // 标准样式 UIAlertView *oneAlertView = [[UIAlertView alloc] initWithTitle:@"标题"message:@"提示内容" delegate:self cancelButtonTitle:@"关闭"otherButtonTitles:@"OK", nil];原创 2014-11-29 09:58:35 · 370 阅读 · 0 评论 -
iOS--UISlider的使用方法详细
// UISlider的常用方法 UISlider *oneSlider = [[UISlider alloc] init]; // 最常用 oneSlider.frame = CGRectMake(10, 20, 300, 30); // 设置位置和大小 注意:UISlider的高度可以随便设置,因为是不会变的 oneSli原创 2014-11-29 09:53:19 · 439 阅读 · 0 评论 -
iOS--UISwitch的使用方法详细
// UISwitch的使用 UISwitch *oneSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(20, 20, 0,0)]; // 默认尺寸为79 * 27。 oneSwitch.backgroundColor = [UIColor greenColor]; // 设置背景色 oneSwi原创 2014-11-29 09:54:28 · 463 阅读 · 0 评论 -
iOS--UIStepper的使用方法详细
// UIStepper的常用方法 UIStepper *oneStepper = [[UIStepper alloc] init]; oneStepper.frame = CGRectMake(20, 20, 20, 20); oneStepper.backgroundColor = [UIColor blueColor]; // 设置背景色原创 2014-11-29 09:56:36 · 397 阅读 · 0 评论 -
iOS--UISegmentedControl的使用方法详细
// UISegmentedControl的使用 NSArray *oneArrayForSegmentedControl = [NSArray arrayWithObjects:@"1", @"2",@"3", @"4", nil]; UISegmentedControl *oneSegmentedControl = [[UISegmentedControl allo原创 2014-11-29 09:57:17 · 549 阅读 · 0 评论 -
iOS--UIPageControl的使用方法详细
// UIPageControl的常用方法 UIPageControl *onePageControl = [[UIPageControl alloc] init]; onePageControl.frame = CGRectMake(10, 100, 300, 30); // 设置位置 onePageControl.backgroundColor = [原创 2014-11-29 09:59:32 · 409 阅读 · 0 评论 -
iOS--UITextView 多行文本的输入和显示 的使用方法详细
// UITextView的常用方法 主要用来输入和显示多行文本信息 UITextView *oneTextView = [[UITextView alloc] init]; oneTextView.frame = CGRectMake(0, 20, 320, 200); // 设置位置 oneTextView.backgroundColor = [UIC原创 2014-11-29 10:01:34 · 495 阅读 · 0 评论 -
iOS--UISearchBar 搜索框 的使用方法详细
// UISearchBar的常用方法 搜索框 UISearchBar *oneSearchBar = [[UISearchBar alloc] init]; oneSearchBar.frame = CGRectMake(0, 0, 320, 70); // 设置位置和大小 oneSearchBar.keyboardType = UIKeyboardTy原创 2014-11-29 10:02:21 · 1471 阅读 · 0 评论 -
iOS--手势控制的使用:单击、双击、长按、滑动、托移、捏合、晃动。。
// 手势识别是具有互斥的原则的,比如单击和双击,如果它识别出一种手势,其后的手势将不被识别 // 添加单击的手势 UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizeralloc] init]; tapGestureRecognizer.numberO原创 2014-11-29 10:03:08 · 838 阅读 · 0 评论 -
iOS--自定义UITabBarController
//// MainTabBarController.m// UITabBarControllerCustomDemo//// Created by LiZe on 13-8-29.// Copyright (c) 2013年 BlackCode. All rights reserved.//#import "MainTab原创 2014-11-29 10:05:52 · 440 阅读 · 0 评论 -
iOS--UITableView的详细使用
// IOS中的UITableView主要由两种样式:// 第一种是分组的样式:UITableViewStyleGrouped// 第二种的是普通的列表形式:UITableViewStylePlain// 在RootViewController.h文件中,需要遵守UITableViewDelegate和UITableViewDataSourc原创 2014-11-29 10:08:18 · 498 阅读 · 0 评论 -
IOS--UIToolBar详细使用
// 这个其实很简单,主要就是向上面添加按钮,然后点击按钮的方法// 效果图// 主要代码//// RootViewController.m// UIToolBar//#import "RootViewController.h"@interface RootViewCon原创 2014-11-29 10:13:53 · 814 阅读 · 0 评论 -
UISlider/UISegmentedControl/UISetpper/UISwitch/UIProgressView/UIPageControl
//// BFASRootViewController.m// OthersViews//// Created by 李泽 on 14/8/22.// Copyright (c) 2014年 蓝鸥科技. All rights reserved.//#import "BFASRootViewController.h"原创 2014-11-29 10:16:01 · 556 阅读 · 0 评论 -
UITableView重要点整理
原创 2014-11-29 10:18:53 · 496 阅读 · 0 评论 -
iOS--UIActionSheet详细使用
// UIActionSheet这个控件很常用,和UIAlertView类似,先附图// 添加了过多的选项,就会以列表的形式显示// 正常显示// 下面直接上代码// 注意,需要在头文件中实现UIActionSheetDelegate协议UIActionSheet *actionSheet = [[UIActionSheet原创 2014-11-29 10:12:55 · 469 阅读 · 0 评论