Stay weird. Stay different.

0%

笔记( - 20160517)

之前总结的笔记

  1. tableView手势冲突
1
2
3
4
5
6
7
#pragma mark UIGestureRecognizerDelegate methods
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch*)touch{
if ([touch.view isDescendantOfView:autocompleteTableView]) {
return NO;
}
return Yes;
}
  1. XCTOOL
1
2
3
4
5
XCTOOL 编译(工程名PhotoAlbum)
1. cd到项目目录
2. xctool -scheme PhotoAlbum build -sdk iphonesimulator(-sdk iphonesimulator表示模拟器编译,不添加此参数表示真机编译)
xctool -workspace BeTalk.xcworkspace -scheme BeTalk archive
3. archive-打包 build-编译 test-测试
  1. httpie && jq
1
http 192.168.1.252:8888/appServer/common/main.do ver_num='1.0' | jq '. | {url: .interface_list.askInsert}'
  1. LLDB
    image lookup -a 地址可以查看bug位置


    断点添加条件

  2. 三元运算符简化

1
2
推荐 result = object ? : [self createObject];
不推荐 result = object ? object : [self createObject];