1.Add Apple Watch target to your project (New->Target->Apple Watch->Watch App)
2.Go to iOS Simulator -> Hardware -> External displays and select any Apple Watch options
3.Choose '[your project] Watch App' target and Run
Translate
2015年6月11日 星期四
Custom URL Scheme
method
Open your app from from safari browser or other app. just setting URL type--> setting URL schemes like bellow
Open your app from from safari browser or other app. just setting URL type--> setting URL schemes like bellow
iphone6和6plus模拟器键盘不弹出问题
在xcode6中, 模拟器中的键盘和电脑的键盘可以进行绑定or解除绑定,打开模拟器,在最上面的菜单栏中,选择hardware,然后选择keyboards,有三个选项, 依次都勾选就行了。(注意:第三个选项在点击之后,实际已勾上了,但显示未勾上,但实际已经奏效了,这可能是xcode6的一个显示上的bug)
NSLog NSData Length to bytes
NSLog(@"File size is : %.2f MB",(CGFloat)myData.length/1024.0f/1024.0f);
Or for OS X 10.8+ and iOS 6+
NSLog(@"%@",[NSByteCountFormatter stringFromByteCount:myData.length countStyle:NSByteCountFormatterCountStyleFile]);
Or for OS X 10.8+ and iOS 6+
NSLog(@"%@",[NSByteCountFormatter stringFromByteCount:myData.length countStyle:NSByteCountFormatterCountStyleFile]);
2015年4月14日 星期二
Xcode 6.3 not displaying memory report
I have resolved disabling Memory Guard diagnostic in the Scheme. From Xcode: Menu Product -> Scheme -> Edit Scheme... -> Diagnostic Tab -> uncheck all Guard options
If still doesn't work, try to disable (if enabled) the "Enable Zombie Object" checkbox
solve
訂閱:
文章 (Atom)
