摘要:
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. /*********按钮控件UIButton**********/ UIButton *myButton = [UIButtonbuttonWithType:UIButtonTypeRoundedRect]; //按钮风格,6种 myButton.frame = CGRectMake(25.0, 25.0, 100.0, 100... 阅读全文
摘要:
//UISlider触发的动作-(void)sliderValueChanged:(id)sender{ UISlider *control = (UISlider *)sender; if (control == mySlider) { float value = control.value; /*添加代码,对滑块的值做出响应*/ } }-(void)viewDidLoad{ /***********滑块控件UISlider**************/ //创建控件 UISl... 阅读全文
摘要:
//UISwitch触发的动作-(void)switchStatusChanged:(id)sender{ UISwitch *control = (UISwitch *)sender; if (control == mySwitch) { BOOL ison = control.on; /*添加代码,处理开关的状态*/ }}-(void)viewDidLoad{ /*************开关控件UISwitch**************/ //创建控件 UISwitch *aSwitch = [UISwitch alloc... 阅读全文
摘要:
-(void) viewDidLoad{ /*************分段控件UISegmentdControl*************/ UISegmentedControl *segmentedControl = [[UISegmentedControlalloc] initWithItems:nil]; segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar; //控件风格小按钮,适合导航栏: segmentedControl.segmentedControlStyle = UISegme... 阅读全文
摘要:
转载于爱德凡的百度空间,地址:http://hi.baidu.com/aidfan/item/34a720866b33cbcdef083d37 UIWebView 使用详解 转载于爱德凡的百度空间,地址:http://hi.baidu.com/aidfan/item/34a720866b33cbcd 阅读全文
摘要:
//先来一个可行的小Demo程序:结合searchBar的google搜索 //2.用webview显示内容,高度自适应 阅读全文