摘要:
- (void)viewDidLoad{//声明按钮的实力对象UIButton*Button =nil;//实例化按钮的实例对象 Button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect];//设置按钮实力对象的大小,位置 Button.frame=CGRectMake(100,100,120.f,120.f);//设置按钮实力对象的背景颜色 Button.backgroundColor= [UIColororangeColor];//设置按钮实力对象的标题 [ButtonsetTitle:@"点我啊"forState 阅读全文
posted @ 2014-03-23 16:30
激扬岁月
阅读(113)
评论(0)
推荐(0)
摘要:
#pragma mark - oc中的冒泡排序 NSMutableArray *sortArray = [NSMutableArray arrayWithObjects:@"2",@"45",@"4",@"12",@"15",@"43",@"25",@"56", nil]; for (int i = 0; i [obj2 intValue]) {// 数组元素交换 [sortArray exchangeObjectAtIndex:j w 阅读全文
posted @ 2014-03-23 15:23
激扬岁月
阅读(248)
评论(0)
推荐(0)