10. UIPickerView
2016-03-23 11:26
519 查看
pickerView
的组必须实现
pickerView
用来显示少量数据
tableView
显示大量数据
Storyboard
关联到控制器,
xib是view
数组
self.foodsArray[0].count
不能用
[Self.foodsArray objectAtIndex:0] id类型
[Self.foodsArray[0] count]
Component row
这是一个二维数组
Nslog (@"%s", __FUNCTION__);
那个控制器调用这个方法
arc4random
标示0~2的32次方
- 1之间的随机数
双向连动
会出现bug,
当一个没停稳
再花另一个会出问题
基本类型
前面+@
都是转换成nsnumber
加载xib
之所以不加上尾缀,
是因为到真机会变成nib
区域化
包括
货币
日期
单位
尺寸
Textfield.Input
是进入的键盘样式
UIToolbar *toolBar
UIbarButtonItem *btn = init -------
多种
image
title
custom
系统的等等
@[]
这个是数组 @{}
这个是字典
inputAccessoryView
添加附件属性
toolbar
就是添加给他
toolBar
的
frame
只有高度有用
cgrectmake(0,0,0,44);
获取picker date NSDate *date = self.picker.date;
时间
大写的M为月
m为分钟
[self.view endEditing:YES];
监听pickerValueChange
来实现滚动改变值
Info.plist
文件是配置文件
Bundle
identity
应用程序的唯一标识
如果相同就替换了
Bundle name
应用程序名字
Bundle
display
name
xcode 6.1之前用的
作为了解,
谁在后面显示哪一个
Bundle
version
string
,short
:
(发布版本)上线的版本号
appstore
Bundle
version
:
测试内部版本号
Main storyboard file base name
他是调用storyboard
Supported
interface
orientation
屏幕旋转方向
Iphone
只支持3种方式,
不能倒着拿
汉字在工程中不能写
Pch
在other里边
pch中引入公用的类
公用的宏
Targets
里边的第一个
builld
settings -》
搜索
pref -》
prefix
header -》 $(srcroot)文件名字(prefixHeader)pch文件名.pch;
Ifdef DEBUG
#define CZLog(…)NSLog(__VA_ARGS__)
#else
#define CZLog(…)
运行模式有两个
debug
和
release
__OBJC__标示在oc状态下
#ifdef __OBJC__
一定要加上#endif
程序启动第一个对象就是UIApplication对象
不能alloc
会崩掉
%@也可以打印地址
可以设置应用程序的右上角脚标
例如qq
App.applicationIconBadgeNumber = 520;
Ios8.0
之后需要得到用户的同意 [UIApplication registerUserNotificationSettings:]
要写这个方法
上面的方法需要传入一个uiuserNotificationSettings *setting = [uiuserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge
categories:nil];
UIApplication
设置状态栏是设置所有的状态
UIStatusBarStyleLightContent
[app setstatusBarstyle:
这些如果不在plist文件中设置
就不会执行这些行为
App.networkActivityIndicatorVisible = YES;
URL -----
唯一资源定位符
NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
[app openURL:url];
打电话
tel
发短信sms
这些要有协议
的组必须实现
pickerView
用来显示少量数据
tableView
显示大量数据
Storyboard
关联到控制器,
xib是view
数组
self.foodsArray[0].count
不能用
[Self.foodsArray objectAtIndex:0] id类型
[Self.foodsArray[0] count]
Component row
这是一个二维数组
Nslog (@"%s", __FUNCTION__);
那个控制器调用这个方法
arc4random
标示0~2的32次方
- 1之间的随机数
双向连动
会出现bug,
当一个没停稳
再花另一个会出问题
基本类型
前面+@
都是转换成nsnumber
加载xib
之所以不加上尾缀,
是因为到真机会变成nib
区域化
包括
货币
日期
单位
尺寸
Textfield.Input
是进入的键盘样式
UIToolbar *toolBar
UIbarButtonItem *btn = init -------
多种
image
title
custom
系统的等等
@[]
这个是数组 @{}
这个是字典
inputAccessoryView
添加附件属性
toolbar
就是添加给他
toolBar
的
frame
只有高度有用
cgrectmake(0,0,0,44);
获取picker date NSDate *date = self.picker.date;
时间
大写的M为月
m为分钟
[self.view endEditing:YES];
监听pickerValueChange
来实现滚动改变值
Info.plist
文件是配置文件
Bundle
identity
应用程序的唯一标识
如果相同就替换了
Bundle name
应用程序名字
Bundle
display
name
xcode 6.1之前用的
作为了解,
谁在后面显示哪一个
Bundle
version
string
,short
:
(发布版本)上线的版本号
appstore
Bundle
version
:
测试内部版本号
Main storyboard file base name
他是调用storyboard
Supported
interface
orientation
屏幕旋转方向
Iphone
只支持3种方式,
不能倒着拿
汉字在工程中不能写
Pch
在other里边
pch中引入公用的类
公用的宏
Targets
里边的第一个
builld
settings -》
搜索
pref -》
prefix
header -》 $(srcroot)文件名字(prefixHeader)pch文件名.pch;
Ifdef DEBUG
#define CZLog(…)NSLog(__VA_ARGS__)
#else
#define CZLog(…)
运行模式有两个
debug
和
release
__OBJC__标示在oc状态下
#ifdef __OBJC__
一定要加上#endif
程序启动第一个对象就是UIApplication对象
不能alloc
会崩掉
%@也可以打印地址
可以设置应用程序的右上角脚标
例如qq
App.applicationIconBadgeNumber = 520;
Ios8.0
之后需要得到用户的同意 [UIApplication registerUserNotificationSettings:]
要写这个方法
上面的方法需要传入一个uiuserNotificationSettings *setting = [uiuserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge
categories:nil];
UIApplication
设置状态栏是设置所有的状态
UIStatusBarStyleLightContent
[app setstatusBarstyle:
这些如果不在plist文件中设置
就不会执行这些行为
App.networkActivityIndicatorVisible = YES;
URL -----
唯一资源定位符
NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
[app openURL:url];
打电话
tel
发短信sms
这些要有协议
相关文章推荐
- UIAlertController的简单使用
- IOS中如何在多层界面之间显示与隐藏标签栏(UITabBar)
- Ireport Error retrieving field value from bean : ate045
- 9.UICollectionView增强
- org.hibernate.HibernateException: createSQLQuery is not valid without active transaction
- 225. Implement Stack using Queues
- 8.UIVollectionView
- 6.UITableView增强
- 5.UITableView使用 / 数据源 & 代理 / 行高 / TableViewCell 重用 / 索引栏
- 4.ScrollView常用属性,常用代理方法,图片轮播器,UIAlertView/UIActionSheet
- Bctf-pwn_ruin-re_lastflower
- win8 &win10系统下Guest 帐号本地主机登录
- skcatSgnisueueuQtnemelpmI.232
- iOS开发——UIImageView
- UITableView分割线从边框顶端开始
- Android Activity.runOnUiThread() 和 Handler
- 【学渣笔记】Xitrum Scala Web Framework Guide
- iOS UITableCell复用
- UIImageView的ContentMode属性
- Process 'command '**/ndk-build.cmd'' finished with non-zero exit value 1