一、选择题(每题4分)
(Button)的状态?
A. normal
B. highlighted
C. disabled
D. touchInside
参考答案:D
?
A. UIButton
B. UILabel
C. UIView
D. UIImageView
参考答案:C
?
A. frame
B. CGRect
C. bounds
D. center
参考答案:B
,一个点是一个( )的格子?
A. 1像素* 2像素
B. 1像素* 1像素
C. 2像素* 2像素
D. 2像素* 1像素
参考答案:C
( )的子类。
A. UIView
B. UIControl
C. NSResponder
D. UIResponder
参考答案:B
,frame与bounds的区别是?
A. frame 是 bounds 的别名
B. frame 是 bounds 的继承类
C. frame 的参考系是父视图坐标,bounds 的参考系是自身的坐标
D. frame 的参考系是自身坐标,bounds 的参考系是父视图的坐标
参考答案:C
和 UIImageView 的说法正确的是?
A. 默认都能显示图片
B. 默认都能显示文字
C. 默认都能响应事件
D. 以上说法都是正确的
参考答案:A
,以下原因哪个是不正确的?
A. 没有取消autolayout功能
B. 没有接收到触摸事件:userInteractionEnabled = NO
C. scrollEnabled = YES
D. 没有设置contentSize
参考答案:C
?
A. -(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView;
B. - (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath;
C. -(UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath;
D. - (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section;
参考答案:B
?
A. 字典转模型的后,性能会大大提升
B. 防止因为字典的 Key 写错导致加载数据出错
C. 模型的属性写错编译器会直接报错
D. 使用模型访问属性,编译器会给相应的提示,提高开发效率。
参考答案:A
id 描述不正确的
UI基础考试题(带答案) 来自淘豆网www.taodocs.com转载请标明出处.