在iOS的手势识别中,有时我们要用手势实现页面pop(比如微信的左滑返回),实现时UIGestureRecognizerDelegate,会有这么一个(可选的)方法:
// called when a gesture recognizer attempts to transition out of UIGestureRecognizerStatePossible. returning NO causes it to transition to UIGestureRecognizerStateF[......]
Tag Archives: ios
Leave a reply
iOS中为什么使用dispatch_once来实现单件类
+ (XXXXStore *)sharedInstance
{
static id sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [[self alloc] init];
});
return sharedInstance;
}
按理说stat[......]
安装Alcatraz,XCode的第三方插件管理
http://alcatraz.io/
curl http://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
安装成功后,在Window菜单会有Package Manager
插件安装成功后,会在Window最下面有entry
如果遇到插件失效的问题,可以参考如下解决:
http://joeshang.github.io/2015/04/10/fix-xcode-up[......]
新版ios禁止HTTP访问的解决方法
RT,直接访问会提示:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
解决方法有2种:
参考自:http://stackoverflow.com/questions/31254725/transpo[......]