摘要: 问题: 前几下应用,在手机appstore上,从中国区切换到了美国地区,之后,再搜索应用,下载中国区的就不能下载了? 错误提示:总是提示要更改帐户地区;解决方法: 设置---appstore----把当前登录的appid注销掉; 打开手机appstore----搜索一下程序---安装---提示输入appid---输入appid---提示帐户切换到中国--- 切换到中国,就可以下载国内应用了; 阅读全文
posted @ 2013-05-26 19:59 cocoajin 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 1:保存数据 [[NSUserDefaultsstandardUserDefaults] setObject:@"http://www.baidu.com"forKey:@"selectedURL"];2:取数据 NSLog(@" 正在访问---> %@",[[NSUserDefaultsstandardUserDefaults] objectForKey:@"selectedURL"]);3:官方说明:Getting the Shared NSUserDefaults Instance+standardUs 阅读全文
posted @ 2013-05-25 18:00 cocoajin 阅读(365) 评论(0) 推荐(0) 编辑
摘要: //设置移动效果-(void)setEditing:(BOOL)editing animated:(BOOL)animated{ [super setEditing:editing animated:animated]; [self.tableView setEditing:editing animated:animated]; }-(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath{ return YES;}-(void)tableVie... 阅读全文
posted @ 2013-05-25 16:30 cocoajin 阅读(186) 评论(0) 推荐(0) 编辑
摘要: //1:发布通知-----通知回调方法 NSNotificationCenter *refreshWebNotice = [NSNotificationCenterdefaultCenter]; [refreshWebNotice postNotificationName:@"refreshWeb" object:nil]; //2:接收通知----通知回调方法刷新网页;refreshweb [[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(refreshWeb) name:@&q 阅读全文
posted @ 2013-05-25 16:27 cocoajin 阅读(365) 评论(0) 推荐(0) 编辑
摘要: ps的版本不同的,快捷键也不同的,我这有一份整理好的ps3 的你看看能不能用得上,Ps快捷键工具基本快捷键工具箱(多种工具共用一个快捷键的可同时按【Shift】加此快捷键选取) 矩形、椭圆选框工具:【M】 裁剪工具:【C】 移动工具:【V】 套索、多边形套索、磁性套索:【L】 魔棒工具:【W】 喷枪工具:【J】 画笔工具:【B】 像皮图章、图案图章:【S】 历史记录画笔工具:【Y】 像皮擦工具:【E】 铅笔、直线工具:【N】 模糊、锐化、涂抹工具:【R】 减淡、加深、海棉工具:【O】 钢笔、自由钢笔、磁性钢笔:【P】 添加锚点工具:【... 阅读全文
posted @ 2013-05-22 21:40 cocoajin 阅读(569) 评论(0) 推荐(0) 编辑
摘要: #define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)-(void)viewDidAppear:(BOOL)animated{ if (iPhone5) { NSLog(@"555555"); } else { NSLog(@"noooooo"); }}方法二... 阅读全文
posted @ 2013-05-21 18:53 cocoajin 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1:在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 代理方法里面设置颜色转换逻辑;2:在-(void)viewDidAppear:(BOOL)animated 重新加载 tableview reloadData;- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ stati... 阅读全文
posted @ 2013-05-20 19:58 cocoajin 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 方式一:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //cell宽度取系统cell width; CGFloat contentwidth = self.tableView.frame.size.width; //字体大小和下面的 heightForCell保持一致; UIFont *font = [UIFont systemFontOfSize:17.0]; //当前cell数据; NSStri... 阅读全文
posted @ 2013-05-20 18:57 cocoajin 阅读(366) 评论(0) 推荐(0) 编辑
摘要: PPRevealSideViewController 这是一个开源类;使用: 1:创建一个PPRevealSideViewController,UINavigationController对象; 2: 设置 self.window.rootViewController = slideViewController; 注:要先在-Prefix.pch 预编译文件里面 加上 #import "PPRevealSideViewController.h" 3: 在主页面导航上加一个 UIBarButtonItem 并设置回调方法 enterLeftNavication; 4: 在回调 阅读全文
posted @ 2013-05-17 21:56 cocoajin 阅读(599) 评论(0) 推荐(0) 编辑
摘要: /* libxml/tree.h file not found 设置libxml2文件路径 并添加 libxml.2.2.dylib库文件; 1:Project-->Build Settings --> Header Search Paths --->添加 /usr/include/libxml2 2:Project ---> Build Phases ---> Link Binary With Libraries ---> 添加 libxml.2.2.dylib 库文件 ; */ 阅读全文
posted @ 2013-05-16 21:51 cocoajin 阅读(442) 评论(0) 推荐(0) 编辑