随笔分类 - 随手笔记
摘要:phpstorm配置react开发环境 打开 file->setting->Plugins搜索安装 react-templates和jscs插件file->setting->Preferences -> Languages and Frameworks -> JavaScript -> langua
阅读全文
摘要:////导航栏背景透明 [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //导航栏底部线清楚 self.navigationCo
阅读全文
摘要:ios原生定位CoreLocation 1.使用定位 打印输出 [_locationManger requestAlwaysAuthorization]如果你的info.plist 中没有配置相关的key。这行代码什么都不会做的。 适配iOS8 9 定位代理,当前定位授权状态发生改变时调用 小插曲
阅读全文
摘要:1.) 打开你的Xcode工程. 在Supporting Files目录下,选择 File > New > File > iOS > Other > PCH File 然后点击下一步; 2.) 给你的PCH文件起名字TestDemo-Prefix.pch. 例如你的项目工程名为TestDemo然而你
阅读全文
摘要:Mac OS X El Capitan(10.11)显示隐藏文件命令失效解决方法 先在Terminal 输入: defaults write com.apple.finder AppleShowAllFiles -bool true 然后输入下面的 killall Finder 如果想再让显示的隐藏
阅读全文
摘要:keyPath: 决定基础动画的类型,该值不能随便取,一旦取错就达不到想要的效果。要改变位置就取position,要改变透明度就取opacity,要等比例缩放就取transform.scale...更多key请看下面的表1,要尽量能记住这些内容 fromValue: 动画的起始状态值,虽然iOS文档
阅读全文
摘要:#import "ViewController.h" @interface ViewController (){ dispatch_source_t source; // dispatch_queue_t queueAll1; // dispatch_queue_t queueAll2; dispatch_queue_t queueAll; } @end @...
阅读全文
摘要:- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); // Drawing with a white stroke color CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0...
阅读全文
摘要:来自 http://www.cnblogs.com/zhw511006/archive/2012/01/09/2317123.html 0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoin
阅读全文
摘要:点击Cell中的按钮时,如何取所在的Cell: -(void)OnTouchBtnInCell:(UIButton *)btn { CGPoint point = btn.center; point = [table convertPoint:point fromView:btn.superview
阅读全文
摘要:方法一:等待 或者 方法二:pod install --verbose --no-repo-update这命令只是不让本地配置库更新而已
阅读全文
摘要:1、 (?!_) 不能以_开头(?!.*?_$) 不能以_结尾 [a-zA-Z0-9_\u4e00-\u9fa5]+ 至少一个汉字、数字、字母、下划线 2、 只含有汉字、数字、字母、下划线,下划线位置不限: ^[a-zA-Z0-9_\u4e00-\u9fa5]+$ 3、 由数字、26个英文字母或者下
阅读全文

浙公网安备 33010602011771号