摘要: 1. cd 你的文件夹路径的上一级目录。 2. sudo chmod -R 777 你的文件夹名。 3. 输入密码。 4.成功。 阅读全文
posted @ 2016-04-16 13:37 金刚葫芦娃哈哈 阅读(512) 评论(0) 推荐(0) 编辑
摘要: UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; imageView.center = CGPointMake(200, 300); imageView.backgro... 阅读全文
posted @ 2016-01-20 15:48 金刚葫芦娃哈哈 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 问题1:LLDB 打印 frame (如:po self.view.frame)打开终端:(依次输入,什么都没提示,打开xcode项目,有Hook 1(expr --@import UIKit等提示,意味着成功))1.touch ~/.lldbinit2.echo display @import U... 阅读全文
posted @ 2016-01-19 16:37 金刚葫芦娃哈哈 阅读(275) 评论(0) 推荐(0) 编辑
摘要: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=1140832256&version=1&src_type=web"]]; 阅读全文
posted @ 2015-12-09 11:48 金刚葫芦娃哈哈 阅读(659) 评论(0) 推荐(0) 编辑
摘要: NSDate *date = [NSDate date]; 方法一 NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zone secondsFromGMTForDate: date]; NSDate... 阅读全文
posted @ 2015-10-31 11:15 金刚葫芦娃哈哈 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.不能用cocopods导入 否则调用不了微信客户端2.签名 最后要拼接密钥之后再MD5(这个是服务器的事情)3.要导入libc++.dylib库 这个开发文档上没有说 阅读全文
posted @ 2015-10-22 13:33 金刚葫芦娃哈哈 阅读(201) 评论(0) 推荐(0) 编辑
摘要: +(NSString *)getWeekday{NSDate *date = [NSDate date];NSDateComponents *componets = [[NSCalendar autoupdatingCurrentCalendar] components:NSWeekdayCalen... 阅读全文
posted @ 2015-09-25 17:15 金刚葫芦娃哈哈 阅读(139) 评论(0) 推荐(0) 编辑
摘要: [self.label convertRect:self.label.bounds toView:self.view]self.view既是屏幕 阅读全文
posted @ 2015-09-25 17:12 金刚葫芦娃哈哈 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 在webView加载完成的代理方法中添加一下代码[self.webView stringByEvaluatingJavaScriptFromString:@"function assignImageClickAction(){var imgs=document.getElementsByTagNam... 阅读全文
posted @ 2015-09-23 10:59 金刚葫芦娃哈哈 阅读(200) 评论(0) 推荐(0) 编辑
摘要: UIGraphicsBeginImageContextWithOptions(self.imgView.bounds.size, YES, [UIScreen mainScreen].scale); [self.imgView drawViewHierarchyInRect:self.imgVie... 阅读全文
posted @ 2015-09-23 09:54 金刚葫芦娃哈哈 阅读(104) 评论(0) 推荐(0) 编辑