会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
兵哥开发记
博客园
首页
新随笔
联系
订阅
管理
2016年4月16日
Mac电脑修改系统文件夹的权限
摘要: 1. cd 你的文件夹路径的上一级目录。 2. sudo chmod -R 777 你的文件夹名。 3. 输入密码。 4.成功。
阅读全文
posted @ 2016-04-16 13:37 金刚葫芦娃哈哈
阅读(528)
评论(0)
推荐(0)
2016年1月20日
UIImage剪切
摘要: UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; imageView.center = CGPointMake(200, 300); imageView.backgro...
阅读全文
posted @ 2016-01-20 15:48 金刚葫芦娃哈哈
阅读(125)
评论(0)
推荐(0)
2016年1月19日
LLDB 打印 frame
摘要: 问题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 金刚葫芦娃哈哈
阅读(290)
评论(0)
推荐(0)
2015年12月9日
打开qq在线聊天
摘要: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=1140832256&version=1&src_type=web"]];
阅读全文
posted @ 2015-12-09 11:48 金刚葫芦娃哈哈
阅读(702)
评论(0)
推荐(0)
2015年10月31日
获取当地时间
摘要: NSDate *date = [NSDate date]; 方法一 NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zone secondsFromGMTForDate: date]; NSDate...
阅读全文
posted @ 2015-10-31 11:15 金刚葫芦娃哈哈
阅读(136)
评论(0)
推荐(0)
2015年10月22日
微信支付SDK使用心得
摘要: 1.不能用cocopods导入 否则调用不了微信客户端2.签名 最后要拼接密钥之后再MD5(这个是服务器的事情)3.要导入libc++.dylib库 这个开发文档上没有说
阅读全文
posted @ 2015-10-22 13:33 金刚葫芦娃哈哈
阅读(207)
评论(0)
推荐(0)
2015年9月25日
获取当前星期几
摘要: +(NSString *)getWeekday{NSDate *date = [NSDate date];NSDateComponents *componets = [[NSCalendar autoupdatingCurrentCalendar] components:NSWeekdayCalen...
阅读全文
posted @ 2015-09-25 17:15 金刚葫芦娃哈哈
阅读(146)
评论(0)
推荐(0)
UIView相对于屏幕的frame
摘要: [self.label convertRect:self.label.bounds toView:self.view]self.view既是屏幕
阅读全文
posted @ 2015-09-25 17:12 金刚葫芦娃哈哈
阅读(368)
评论(0)
推荐(0)
2015年9月23日
html图片预览
摘要: 在webView加载完成的代理方法中添加一下代码[self.webView stringByEvaluatingJavaScriptFromString:@"function assignImageClickAction(){var imgs=document.getElementsByTagNam...
阅读全文
posted @ 2015-09-23 10:59 金刚葫芦娃哈哈
阅读(205)
评论(0)
推荐(0)
截图
摘要: UIGraphicsBeginImageContextWithOptions(self.imgView.bounds.size, YES, [UIScreen mainScreen].scale); [self.imgView drawViewHierarchyInRect:self.imgVie...
阅读全文
posted @ 2015-09-23 09:54 金刚葫芦娃哈哈
阅读(107)
评论(0)
推荐(0)
下一页
公告