摘要:
1 首先打开 终端输入 open ~/.subversion2 进入目录3修改config4command+f 查询.a文件5删除.a文件(注意要注释掉#号,不然修改无效)再保存6再import 阅读全文
摘要:
经常出先类似错误“EXC_BREAKPOINT(code=EXC_ARM_BREAKPOINT,subcode=0xdefe)”,非常苦恼,今天总结一下这种错误的解决方法:1. 点击“product”->"scheme"->"edit Scheme"->"Diagnostics"-> 勾选“Enab... 阅读全文
摘要:
1.子视图.h文件 #import //声明一个block typedef void (^colorChangeBlock)(NSString *message, UIColor *color, NSError *error); @interface ActionView : UIView //改变父视图的背景,block作为参数 - (void)colorChange:(colorChangeBlock) bblock; @end 2.子视图.m文件 #import "ActionView.h" @implementation ActionView - (id)initW 阅读全文
摘要:
UITabBarController*tabBarController =(UITabBarController*) self.window.rootViewController;UITabBar*tabBar = tabBarController.tabBar;for(UITabBarItem*item in tabBar.items){UIImage*image = item.image;UIImage*correctImage =[image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; item.i... 阅读全文
摘要:
/*Erica Sadun, http://ericasadun.comiPhone Developer's Cookbook, 3.0 EditionBSD License, Use at your own risk*/#import #define COOKBOOK_PURPLE_COLOR[UIColor colorWithRed:0.20392f green:0.19607f blue:0.61176f alpha:1.0f]#define BARBUTTON(TITLE, SELECTOR) [[[UIBarButtonItem alloc] initWithTitle:TI 阅读全文
摘要:
更新证书错误Code Sign error: Provisioning profile ‘XXXX'can't be found在Xcode中当你在更新了你得证书而再重新编译你的程序,真机调试一直会出现 Code Sign error: Provisioning profile ‘XXXX’ can't be found是不是会另你很恼火。下面说说解决方法,让你很好的解决这个问题。1.关闭你的项目,找到项目文件XXXX.xcodeproj,在文件上点击右键,选择“显示包内容”(Show Package Contents)。会新打开一个Finder。注:其实XXXX.xc 阅读全文
摘要:
- (void)viewDidLoad{ [superviewDidLoad];// Do any additional setup after loading the view, typically from a nib. view1=[[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"logo.png"]]; view1.frame=CGRectMake(50, 50, 200, 200); UIButton*button=[[UIButtonalloc]initWithFrame:CGRectMake(50, 5 阅读全文