摘要: - (IBAction)touchReadButton:(id)sender { NSData *jsonData = [[NSData alloc] initWithContentsOfFile:JSON_PATH]; NSError *error = nil; id jsonObject = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:&error;]; ... 阅读全文
posted @ 2013-12-16 14:57 菜鸟程序猿 阅读(345) 评论(0) 推荐(0) 编辑
摘要: for (UIView * thebtn in [self.view subviews]) { if ([thebtn isKindOfClass:[UIButton class]]) { //***改变字体颜色 [(UIButton *)thebtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; //***改变背景 [(UIButton... 阅读全文
posted @ 2013-12-16 14:43 菜鸟程序猿 阅读(336) 评论(0) 推荐(0) 编辑