ios7

how to present a view controller on iOS7 without the status bar overlapping

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 21:52:48
问题 I'm seeing when I migrated my app to iOS 7, the nav bar is appearing under the status bar when presenting a view controller. I think a lot of people have run into this same issue. Here's a screenshot of what I'm seeing: Requirements: The new view must appear "modally", i.e. I need presentViewController. Display some sort of nav bar or toolbar, with the status bar taking on the background color of the nav bar ala iOS 7 style. It must work on iOS 6. I'm using a xib to handle layout, with

How to fade out the status bar while not hiding it

帅比萌擦擦* 提交于 2019-12-17 21:52:46
问题 iOS Developers will surely knows about the issue about status bar and the famous "slide/hamburger/drawer". The issue is well explained here: http://uxmag.com/articles/adapting-ui-to-ios-7-the-side-menu I'm using MMDrawerController library and it has a nice hack that lets us to create a dummy status bar just above the container view controller. Unfortunately this doesn't work really good. What's the news? The news is that I stumbled upon an app (Tinder) that perfectly solve this mind blowing

Navigation bar has wrong position when modal a view controller with flip horizontal transition in iOS 7

一世执手 提交于 2019-12-17 21:47:55
问题 When I am trying to modal a view controller with flip horizontal transition in iOS7, the origin of navigation bar is (0, 0) at beginning and then jump to the right position at (0, 20). Is it possible to make it behave the same with in iOS6? You can download the project here. I have created a customized navigation bar as following: @implementation MyCustomNavigationBar - (void)drawRect:(CGRect)rect { [super drawRect:rect]; UIImage *image = [UIImage imageNamed:@"Custom-Nav-Bar-BG.png"]; [image

“Simulator in use” error message shown even after simultor is not running [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-17 21:09:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Whenever I try to run an application from Xcode it displays an error message: This happens even though the simulator is not running. I force quit the simulator process from Activity Monitor, but it shows that message again and again. If I quit and reopen Xcode it will work without error, but is there any

Reusing view in UIPickerView with iOS 7

只谈情不闲聊 提交于 2019-12-17 20:43:56
问题 EDIT 12-14-2015 : This problem is again frequently reported on iOS 7, iOS 8, iOS 9.... I think Apple want not of this control anymore, and should just forbid us to use it instead of let such a major bug I use a UIPickerView with custom views loaded from a Xib. I was using the method -(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view from UIPickerViewDelegate to reuse my views. With iOS 6, my UIPickerview

iOS 7 Weather app expand/collapse transition

空扰寡人 提交于 2019-12-17 20:42:25
问题 I'm trying to achieve a view transition like the new iOS7 weather app transition, using a collapsing/expanding view. Does anyone know if a lib already exist for that ? Thanks 回答1: User antol put some effort into replicating the behavior: https://github.com/Antol/APPaginalTableView But note that APPaginalTableView doesn't have a separate controller for the expanded pages. You can see it in action here: https://www.youtube.com/watch?v=X1YvxDMr0yA 回答2: EDIT Check out this project. It

UIAlertView automatic newline gone in iOS8?

本小妞迷上赌 提交于 2019-12-17 20:39:43
问题 It appears that UIAlertView is not compatible with iOS8. I've just discovered that all my multiline UIAlertViews become truncated one-liners in iOS8 (for the message). In iOS7 they are displayed correctly with multilines. iOS7: iOS8: [[[UIAlertView alloc] initWithTitle:@"Namn saknas" message:@"Du måste fylla i ditt namn för att kommentera" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil] show]; I'm aware of that UIAlertController should be used in iOS8 and later and that

Stick UITableView header view to top when creating header in storyboard

假如想象 提交于 2019-12-17 20:37:13
问题 I have created a table view header using the answer here. My problem is that when creating the header this way, it does not "stick" to the top of my UITableView when scrolling down. If I create my header in code inside of viewForHeader then it does stick. How can I get my header to stick to the top while scrolling if I create it in storyboard? 2 other askers here and here asked this question and never got an answer. And yes my UITableView is already plain style, not grouped. 回答1: rdelmar's

How to authenticate the GKLocalPlayer on my 'third party server' using PHP?

眉间皱痕 提交于 2019-12-17 19:54:19
问题 Please forgive my clumsiness, I'm new to Stackoverflow, C#, and Objective C. In a nutshell, I'm trying to do what is answered in this question, but in PHP: How to authenticate the GKLocalPlayer on my 'third party server'? Hopefully this will also help other PHP devs working on the same thing. I'm using Unity (Unity3D) and PHP server-side. I've got Objective C properly connecting to GameCenter and returning data via a call to generateIdentityVerificationSignatureWithCompletionHandler .

Change status bar text colour from white iOS 7 / Xcode 5 [duplicate]

泄露秘密 提交于 2019-12-17 19:37:20
问题 This question already has answers here : How to change Status Bar text color in iOS (52 answers) Closed 6 years ago . I'm developing an application for a school that I work at. Currently I am having issues with changing the status bar text from it's default state of black to white so we can actually read it! I have tried everything i've found here and on the dev forums, including calling View controller-based status bar appearance = "NO" and also [[UIApplication sharedApplication]