您的位置:首页 > 产品设计 > UI/UE

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
这些要有协议
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: