![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
it萌小猫
开开心心写代码
展开
-
ios7以后UINavigationcoller 与 UITextView
在有导航栏的情况下,UITextView的光标总是定位在textView的最下面,而我期望的是在最上得位置,解决方法如下: if ([[[UIDevicecurrentDevice] systemVersion] floatValue] >= 7.0) { self.automaticallyAdjustsScrollViewInsets =原创 2015-01-23 13:13:40 · 462 阅读 · 0 评论 -
ios动画:获取处于动画中的UIView,UIImageView的坐标
- (void)viewDidLoad{ [superviewDidLoad]; self.imageView = [[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"bg_2.png"]]; self.imageView.frame =CGRectMake(0,0, 100,150)原创 2015-03-02 16:59:36 · 873 阅读 · 0 评论 -
macos 安装openresty make: /Applications/Xcode: No such file or directory
openresty官方地址:http://openresty.org/将openresty安装到macos上sudo ./configure --prefix=../ 报错了make: /Applications/Xcode: No such file or directory解决方法:查一下xcrun查找cmd tool时的路径$ xcode-sele原创 2015-03-07 23:26:31 · 1167 阅读 · 0 评论 -
ios下mach_absolute_time获取精准时间
IOS中可以使用"mach_absolute_time"获取到CPU的tickcount的计数值,可以通过"mach_timebase_info"函数获取到纳秒级的精确度#import @interface ViewController ()@property(nonatomic,assign)UInt64 start;@property(nonatomic原创 2015-08-17 14:28:40 · 4464 阅读 · 0 评论