随笔分类 -  iOS系统控件使用

记录早期学习iOS时分析使用系统控件
摘要:转载于爱德凡的百度空间,地址:http://hi.baidu.com/aidfan/item/34a720866b33cbcdef083d37 UIWebView 使用详解 转载于爱德凡的百度空间,地址:http://hi.baidu.com/aidfan/item/34a720866b33cbcd 阅读全文
posted @ 2012-08-19 15:42 小、 阅读(7376) 评论(2) 推荐(1)
摘要://先来一个可行的小Demo程序:结合searchBar的google搜索 //2.用webview显示内容,高度自适应 阅读全文
posted @ 2012-08-19 15:42 小、 阅读(17309) 评论(0) 推荐(0)
摘要:本文部分转自俺是一个瓜娃!!!的博客UISwipeGestureRecognizer 手指动作,转载过来仅是为了自己查询方便。 tap是指轻触手势。类似鼠标操作的点击。从iOS 3.2版本开始支持完善的手势api: tap:轻触 long press:在一点上长按 pinch:两个指头捏或者放的操作 阅读全文
posted @ 2012-08-07 21:41 小、 阅读(34074) 评论(0) 推荐(1)
摘要:UITextView协议: //点击开始编辑:- (BOOL)textViewShouldBeginEditing:(UITextView *)textView;- (void)textViewDidBeginEditing:(UITextView *)textView; //结束编辑 - (BOO 阅读全文
posted @ 2012-08-07 16:26 小、 阅读(2851) 评论(3) 推荐(0)
摘要://.h文件@interface ViewController : UIViewController<UIScrollViewDelegate>{ UIScrollView *scrollView; UIImageView *imageView; }//.m文件- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // CGRect *screenBounds = [[UIScr... 阅读全文
posted @ 2012-08-07 16:25 小、 阅读(4209) 评论(0) 推荐(0)
摘要:基类控件UIControl、分段控件UISegmentControl、开关控间UISwitch、滑块控件UISlider、按钮控件UIButton -(void) viewDidLoad{ //属性 enabled //默认启用 selected //选中空间是其属性置为YES contentVer 阅读全文
posted @ 2012-08-04 14:38 小、 阅读(789) 评论(0) 推荐(0)
摘要:在类声明的超类后添加协议名称(UIActionSheetDelegate) 通过按键触发buttonPressed - (IBAction)buttonPressed:(id)sender { UIActionSheet *actionSheet = [[UIActionSheet alloc] i 阅读全文
posted @ 2012-07-06 20:47 小、 阅读(185) 评论(0) 推荐(0)
摘要:文本字段属性设置:Placeholer:以灰色显示在文本框内,用来提示输入信息Clean When Editing Begins: 输入时清空文本框Font : 字体及大小Adjust to Fit : 可确保真个文本可见, Min Size: 最小文本大小KeyBoard Type: 可切换键盘显示类型Enabled: Yes 为可编辑,No则相反完成后关闭键盘的操作:#单击Enter 键关闭键盘: 要连接 Did End On Exit事件连接到textFieldDoneEditing:操作-(IBAction)textFieldDoneEditing:(id)sender{ [sende 阅读全文
posted @ 2012-07-06 20:15 小、 阅读(624) 评论(1) 推荐(0)