Magic Studio

专心做有逼格的APP!

09 2013 档案

ios7适配--uitableviewcell选中效果
摘要:ios7 UITableViewCell selectionStyle won't go back to blueup vote6down votefavorite2Xcode 5.0, iOS 7 and updating an existing app.UITableViewselected row is now gray, not blue.From what I've read they changed the defaultselectionStyleto gray. But "Blue" is still an option in IB andU 阅读全文

posted @ 2013-09-27 10:14 Mr 布鲁斯 阅读(648) 评论(0) 推荐(0) 编辑

ios7 设置status bar风格
摘要:How to change status bar style during launch on iOS 7up vote4down votefavoriteWhen I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to light in my AppDelegate didFinishLoading method, 阅读全文

posted @ 2013-09-26 16:18 Mr 布鲁斯 阅读(311) 评论(0) 推荐(0) 编辑

ios7适配--隐藏status bar
摘要://viewDidloadif ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {// iOS 7[self prefersStatusBarHidden];[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];} else {// iOS 6[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnima 阅读全文

posted @ 2013-09-25 21:26 Mr 布鲁斯 阅读(280) 评论(0) 推荐(0) 编辑

ios7适配--navgationbar遮住下面view的处理
摘要:3down votefavoriteHave you guys stumbled up on this issue ?Basically in iOS 7 Navigation Controller is rendered over the sub-view I navigated to.In iOS 6 view I navigate to is enclosed between navigation bar and footer. In iOS 7 it looks like sub-view is rendered full-screen, under navigation bar an 阅读全文

posted @ 2013-09-25 14:27 Mr 布鲁斯 阅读(1428) 评论(0) 推荐(0) 编辑

UIView的alpha、hidden和opaque属性之间的关系和区别[转]
摘要:UIView的alpha、hidden和opaque属性之间的关系和区别作者:wangzz原文地址:http://blog.csdn.net/wzzvictory/article/details/10076323转载请注明出处UIView的这几个属性让我困惑了好一阵子,通过翻看官方文档和stackoverflow等网上资源,对它们有了一定理解,现分享出来。如理解有误,还请大家指出。一、alpha液晶显示器是由一个个的像素点组成的,每个像素点都可以显示一个由RGBA颜色空间组成的一种色值。其中的A就表示透明度alpha,UIView中alpha是一个浮点值,取值范围0~1.0,表示从完全透明到完 阅读全文

posted @ 2013-09-24 10:29 Mr 布鲁斯 阅读(353) 评论(0) 推荐(0) 编辑

Alternative to iPhone device ID (UDID)
摘要:Alternative to iPhone device ID (UDID) [duplicate]up vote10down votefavorite3Possible Duplicate:UIDevice uniqueIdentifier Deprecated - What To Do Now?Even if Apple was not at Barcelone's MWC (mobile world congress), there was the certitude that getting the deviceID will be deprecated in further 阅读全文

posted @ 2013-09-20 17:46 Mr 布鲁斯 阅读(534) 评论(0) 推荐(0) 编辑

ios屏幕旋转
摘要:屏幕旋转// ios 5、6都有这个方法- (BOOL)shouldAutorotate{ returnYES;}//ios6有效- (NSUInteger)supportedInterfaceOrientations{ returnUIInterfaceOrientationMaskLandscape;}//ios5有效- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ return ((toInterfaceOrientation==UIInter... 阅读全文

posted @ 2013-09-20 11:29 Mr 布鲁斯 阅读(227) 评论(0) 推荐(0) 编辑

Redesign Your App for iOS 7 之 页面布局【转】
摘要:前言iOS7是目前iOS史上最颠覆的一次改版。它的出现令人兴奋,因为它将会带我们进入一个全新的时代;它的到来也让我们忧心,因为它颠覆了一切,包括我们过去做过的很多努力。但是,相信大家乐意为这个全新时代做更多的努力,因为,它值得期待。最近打算写一系列针对iOS7新特性的文章,今天就从最基本和简单的页面布局开始吧。从头说起当我看见iOS7那个半透明设计的navigationBar,已经有种不详的预感。因为要透过navigationBar看到底下滚动的内容,那么底下的内容必须从顶部开始布局,并且需要设定相应的内边距以让初始内容显示在合适的位置上。要对应用适配这种凶残设计,其工作量绝比适配iPhone 阅读全文

posted @ 2013-09-16 00:12 Mr 布鲁斯 阅读(552) 评论(0) 推荐(0) 编辑

Creating and Using Static Libraries for iPhone using Xcode 4.3
摘要:Recently, after developing a collection of applications for iPhone that were intended to be used as libraries, I began looking into how to convert Xcode projects into static libraries. Most of what I found was vague, unclear, and outdated. Instructions were either for older versions of Xcode, or ass 阅读全文

posted @ 2013-09-14 12:52 Mr 布鲁斯 阅读(319) 评论(0) 推荐(0) 编辑

Build fat static library (device + simulator) using Xcode and SDK 4+
摘要:155down votefavorite185It appears that we can - theoretically - build a single static library that includes both simulator and iPhone and iPad.However, Apple has no documentation on this that I can find, and Xcode's default templates are NOT configured to do this.I'm looking for a simple, po 阅读全文

posted @ 2013-09-14 12:50 Mr 布鲁斯 阅读(1237) 评论(0) 推荐(0) 编辑

How to safely shut down a loading UIWebView in viewWillDisappear?
摘要:up vote24down votefavorite24I have a view containing a UIWebView which is loading a google map (so lots of javascript etc). The problem I have is that if the user hits the 'back' button on the nav bar before the web view has finished loading, it is not clear to me how to tidily tell the web 阅读全文

posted @ 2013-09-11 15:38 Mr 布鲁斯 阅读(1069) 评论(0) 推荐(0) 编辑

处理iOS设备的屏幕旋转
摘要:某些情况下,不强制的给用户唯一的屏幕角度给用户。这样用户可以旋转手机得到不同的视觉体验。最简单的就是safari,横看竖看都可以。这时需要捕捉用户的屏幕旋转事件并处理。很简单,才两步。比把大象装冰箱都简单。下面是代码: 1 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 2 { 3 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 4 if (self) { 5 [[... 阅读全文

posted @ 2013-09-07 22:28 Mr 布鲁斯 阅读(502) 评论(0) 推荐(0) 编辑

Instruments Tutorial for iOS: How To Debug Memory Leaks【转】
摘要:If you're new here, you may want to subscribe to myRSS feedor follow me onTwitter. Thanks for visiting!Call the plumber, it's-a-leaking!Update 4/12/13:These days, you should probably be using Apple’s new Automatic Reference Counting (ARC) technology instead of doing manual memory management. 阅读全文

posted @ 2013-09-06 10:36 Mr 布鲁斯 阅读(681) 评论(0) 推荐(0) 编辑

导航

统计信息

点击右上角即可分享
微信分享提示