- 博客(123)
- 收藏
- 关注

原创 查看http参数等
(lldb) po [[NSString alloc] initWithData: task.currentRequest.HTTPBody encoding: NSUTF8StringEncoding] (lldb) po task.originalRequest.allHTTPHeaderFields
2016-11-08 21:17:34
277

原创 git常用命令
命令行 拉取代码: 1.切换到想保存代码目录(查看当前目录为pwd), git init 2.(查看某个文件 用cat Podfile ) 拉取代码命令:git pull +url(一般为.git) 3.提交为 git comitt 4.增加新文件为git add a.c
2016-08-03 13:12:40
318
原创 如何下载脱壳ipa
1,去pp助手,打开这里:https://www.25pp.com/ios/game/2,点开一个游戏,5.通过appdownurl及 点击事件处理ppOneKeySetup,找到pp_onekey-d17d98b4.js中的关键代码3,类似这个:aHR0cDovL3IxMS4yNXBwLmNvbS9zb2Z0LzIwMTcvMTIvMTUvMjAxNzEyMTVfMzM2MzBfMjE0N...
2019-12-28 15:47:23
4057
1
原创 Cocopods文件
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2018-04-25 16:47:14
318
原创 用Mac本地apache创建测试数据
sudo /usr/sbin/apachectl start 就开启了本地服务器,可以从locahost查看 本地文件在/Libary/WebServer/Documents 创建好json文件放入即可访问 还有两个命令restart/stop
2017-07-05 12:19:10
360
原创 git 丢弃commit命令
git reset –hard 65bd4e022dd3e50e5bc824aae7ff54d27a824faa git push -f origin master 丢弃一下的提交
2017-07-03 15:54:49
2217
原创 cocopods更新失败解决
gem source -l如果显示: * CURRENT SOURCES *https://ruby.taobao.org/ 移除sudo gem install cocoapods ERROR: While executing gem … (OpenSSL::SSL::SSLError) hostname “upyun.gems.ruby-china.org” does not
2017-05-18 02:47:33
831
原创 判断点击点是不是在UICollectionView中的cell上
indexPath只要不为0就是 CGPoint tapPoint = [gesture locationInView: _collectionView]; NSIndexPath *indexPath = [_collectionView indexPathForItemAtPoint: tapPoint];
2017-05-10 15:28:28
946
原创 http参数
(lldb) po task.originalRequest.URL.absoluteURL http://news.jihai8.com/common/news/match-news?src=ios&channel=AppStore&v=160(lldb) po [[NSString alloc] initWithData: task.originalRequest.HTTPBody encod
2017-04-28 21:59:45
278
原创 引入头文件
title left title Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur praesentium odit deleniti, mollitia officiis voluptatibus incidunt repellat inventore natus quas
2017-04-17 11:43:37
426
原创 栅栏式布局
Bootstrap 101 Template<!-- Bootstrap --><link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css"> 一半 D
2017-04-17 08:24:26
1142
原创 sdwebImageview 在https 中不能加载图片时解决方法
[self.avatarImageView sd_setImageWithURL: [NSURL URLWithString: famousStarObject.avatar] placeholderImage: [UIImage imageNamed: @"icon_default_avator"] options: SDWebImageAllowInvalidSSLCertificates];
2017-04-13 10:13:23
1660
原创 删除xcode 中过期的描述性文件
1.使用终端 首先 打开终端 cd ~/Library/MobileDevice/Provisioning\ Profiles/ 再删除所有 rm *.mobileprovision 2.直接找到文件夹-简单粗暴 首先show in finder,接着 Com+Shi+G ,再 ~/Library/MobileDevice/Provisioning Profiles 最后找到
2017-04-06 11:41:23
1053
转载 查看网络请求参数
(lldb) po task.originalRequest(lldb) po [[NSString alloc] initWithData: task.originalRequest.HTTPBody encoding: NSUTF8StringEncoding]
2017-04-06 10:26:32
863
原创 制作二倍或者三倍图
mac 调整大小,双击图片 点击这个图片 图片上的小公文包 选择 px 三倍变2倍为 *3 / 2 如果图片太大,用tinypng.com压缩图片
2017-03-30 21:20:20
1643
原创 忽视编译检查警告
if ([self respondsToSelector: NSSelectorFromString(@"tappedShareButton:")]) {pragma clang diagnostic pushpragma clang diagnostic ignored “-Warc-performSelector-leaks” [self performSelector: NSSelec
2017-03-07 10:15:19
335
原创 打野教学
很多低端局尤其是白金段以下意识不到刷钱的问题,其实这个游戏比拼的先是经济,才是阵容啊英雄啊这些问题。刷钱就是双方的经济,经济好就能多买装备,装备起来了攻击力比对面高,血比对面多,团战自然就容易赢。所以,请把双方的经济实力放在你游戏时考虑的第一位。 在比赛中经常确认经济,有助于判断敌我实力,避免产生送人头、团灭等悲剧。这个界面推荐使用金币排序,能够非常直观地看出双方经济情况。 经济来自于上中下路的
2017-03-02 15:55:05
232
原创 cell的线不贴边
-(void)tableView:(UITableView )tableView willDisplayCell:(UITableViewCell )cell forRowAtIndexPath:(NSIndexPath *)indexPat{ if ([cell respondsToSelector: @selector(setLayoutMargins:)]) { [
2017-02-23 10:26:27
171
原创 自动适配Label高度
CGSize finalFitTitleHeight = [self.titleLabel sizeThatFits: autoFitTitleHeight];
2017-02-21 11:30:54
379
原创 启动都需要 放在主线程里了
(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {dispatch_async(dispatch_get_main_queue(), ^{ //你的代码写在这里面// });return YES; }
2017-02-15 16:57:41
253
原创 http
po [[NSString alloc] initWithData: error.userInfo[@”com.alamofire.serialization.response.error.data”] encoding: NSUTF8StringEncoding]
2017-02-15 15:35:11
256
原创 test
import “MainViewController.h”import “ASMediaThumbnailsViewController.h”@interface MainViewController ()@end@implementation MainViewController(void)viewWillAppear:(BOOL)animated { [super viewWill
2017-01-14 22:26:07
249
原创 setter方法
赋值才会调用setter self.JH = @”” 方法取值只会调用 getter NSString *string = self.JH;
2016-12-13 18:32:46
467
原创 右移
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { UIUserNotificationTypeNone = 0, // the application may not present any UI upon a notification being received UIUserNotificatio
2016-12-09 15:41:11
240
原创 友盟iOS 错误日志定位
先从Archive后点文件名称ShowinFinder .dSYM文件,再show content后查看里面最终你自己的文件名称,dSYM文件/Contents/Resources/DWARFAppName = 找到的文件名称 xxxx == 动态报错地址 XXX == 动态加载开始地址atos -o AppName xxxx -arch armv7 -l XXXXX -l 后面跟的是动态加载
2016-12-09 14:24:02
765
原创 block内放置weakSelf被提前释放
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{__strong __typeof(self) strongSelf = weakSelf;[strongSelf doSomething];[strongSelf doOtherThing];});文/Jason_Developer(简书作
2016-12-08 14:03:35
2342
原创 宏定义
define YRWeakObj(o) autoreleasepool{} __weak typeof(o) o##Weak = o;define YRStrongObj(o) autoreleasepool{} __strong typeof(o) o = o##Weak;
2016-12-08 10:08:35
271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人