ios7

What to name images for iPhone 5 screen size?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 08:03:24
问题 What is the new naming convention for images for the 4-inch retina display? For an image named background.png you add @2x to the name ( background@2x.png ) to tell iOS to use that one for devices with the retina display. What would the suffix be for iPhone 5's screen size? 回答1: You can use my #define s to help you with these images: #define isPhone568 ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && [UIScreen mainScreen].bounds.size.height == 568) #define

Different behaviour in iOS 7 and iOS 8 on -(void)viewDidAppear:(BOOL)animated on Partial Curl VC

删除回忆录丶 提交于 2019-12-20 06:13:32
问题 -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; //Reset all NSUserDefaults values } My app was previously working fine in iOS 7 but after upgraded to iOS 8, it is no longer working. This is happening in my parent VC where user is required to select some option in another (child) VC which transit via "Partial Curl". In iOS 8, seems like all my options are not saved in child VC anymore when I transit back to my parent VC. FYI I store my options selection in child VC inside

iOS 7 - Long running background task

半城伤御伤魂 提交于 2019-12-20 06:11:08
问题 Similar to iOS long-running background timer with "location" background mode but not exactly. Our app needs to send occasional geolocation data in the background. Works fine in foreground but it, of course, gets terminated after 3 minutes. So I need to implement something like this. Has anyone done this in C# and, if so, would you be willing to share? https://stackoverflow.com/a/18962839/462935 Thanks! 回答1: You can only have your app wake up on significant location changes. Please see

Scroll bar of iOS web view change into half of it should be

浪子不回头ぞ 提交于 2019-12-20 05:52:19
问题 Using Xcode 5, iOS 7. Problems occurs after changing the frame of the web view from (0, 45, 320, 568 - 20 - 45 - 49) to (0, 0, 320, 568 - 20) or change it back, its superview is its container with a frame (0, 20, 320, 548) to the rootViewController of application window. When changing web view's frame back to (0, 45, 320, 568 - 20 - 45 - 49) to its container, web view is within 65 to (568 - 49) vertical area, but its scroll bar is scrolling from 65 to around middle of the web view. 回答1: A

Scroll bar of iOS web view change into half of it should be

冷暖自知 提交于 2019-12-20 05:52:07
问题 Using Xcode 5, iOS 7. Problems occurs after changing the frame of the web view from (0, 45, 320, 568 - 20 - 45 - 49) to (0, 0, 320, 568 - 20) or change it back, its superview is its container with a frame (0, 20, 320, 548) to the rootViewController of application window. When changing web view's frame back to (0, 45, 320, 568 - 20 - 45 - 49) to its container, web view is within 65 to (568 - 49) vertical area, but its scroll bar is scrolling from 65 to around middle of the web view. 回答1: A

Why does hiding my status bar completely break my simple animation?

白昼怎懂夜的黑 提交于 2019-12-20 05:51:24
问题 Example project: http://cl.ly/0O2t051o081p I want to achieve a slide-out sidebar as described in this question where the status bar moves as well. I've got everything working and the sidebar slides, but as soon as I try to hide the status bar with to complete the "illusion" it stops anything from happening at all and the sidebar no longer slides out. Here's my code: - (void)viewDidAppear:(BOOL)animated { double delayInSeconds = 1.0; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW,

Customise UI Navigation Bar and button

回眸只為那壹抹淺笑 提交于 2019-12-20 04:59:34
问题 Hello I am new to ios development and want to know how to customise navigation bar buttons This is what i used to change navigation bar color [[UINavigationBar appearance] setBarTintColor:[UIColor]] I want to change button colour Here is a exmaple 回答1: First you need to set navigation bar, assuming your first screen is SpalshViewController you need to set splash screen as a root view controller for navigation bar and then set navigation bar as root view controller like : self.window = [

iOS 7: Keeping the displayed items in the viewing area after rotation of UICollectionView

血红的双手。 提交于 2019-12-20 04:37:31
问题 I'm using a UICollectionView with horizontal scrolling (Layout = UICollectionViewFlowLayout ). After rotation I adapt the content offset so that the same items are displayed before the rotation. On rotation the width of the items are changed, because there are always seven items on screen. My current approach does work for iOS 8, but not for iOS 7. On iOS 7 layoutAttributesForItemAtIndexPath always returns the same X position regardless of the orientation. So it seems that some frame is not

Touches not recognized after custom transition

随声附和 提交于 2019-12-20 04:12:44
问题 I have an issue with custom transitions on the iPad. I create a custom transition that animates correctly and seems to work (i.e. the transition occurs). However, when I arrive at the destination view controller (after executing the isLoggedIn block), the destination view controller is unresponsive (it doesn't respond to touch events). II have a feeling it has something to do with the call to [container insertSubview:toViewController.view belowSubview:fromViewController.view]; because if I

IOS7: Pop ViewController forces the UIImageView to drop

会有一股神秘感。 提交于 2019-12-20 04:06:59
问题 After upgrading my project to iOS7 when I do a BACK Button and the UINavigationController goes back to the previous page, an ImageView on the top of the screen shifts down. I use IB to do my layouts. These are my Simulated Metrics: I have AutoLayout off. Any ideas on what the issue might be? I wasnt sure if anyone wants to see specific code and I didnt want to clutter up the question with too much code. Updates: Based on the comment questions, I wanted to make these updates: In no place in