摘要: IOSUIDatePicker用法:1 .h@interface ViewController :UIViewController{ UILabel *datelabell; UIDatePicker *datepicker;}@property (nonatomic,retain) IBOutlet UILabel *datelabel;@property (nomatomic,retain) IBOutlet UIDatePicker *datepicker;-(IBAction) dateChange:(id)sender;@end2. m a).@synthesize datelabe 阅读全文
posted @ 2012-07-04 18:37 大树2 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1 .h-(IBAction) buttonClick:(id)sender;2 .m-(IBAction) buttonClick:(id)sender{ UIButton *button=(UIButton *)sender; //UIButton *button[[UIButton alloc] init]]; NSString *title=[NSString stringWithFormat:@"Button tag is %d",button.tag]; NSString *message=[button currentTile]; UIAlertView *a 阅读全文
posted @ 2012-07-04 16:40 大树2 阅读(536) 评论(0) 推荐(0) 编辑
摘要: UILabel:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSString *str=@"i am a string"; UIFont *_font=[UIFont fontWithName:@"Arial" size:50.0f]; CGSize labesize=[str sizeWithFont:_font]; UILabel *_label=[[UILabel 阅读全文
posted @ 2012-07-04 14:59 大树2 阅读(231) 评论(0) 推荐(0) 编辑