ios7

Change iOS7 Status Bar Colour programmatically, mid-run?

一世执手 提交于 2019-12-19 03:13:34
问题 I’m trying to change the Status Bar colour mid-run, i.e. not when a controller is loaded. I change the view’s background colour, so I need to change it from the black to white and vice versa. I know that I can change it using preferredStatusBarStyle and the setting in the plist, but as far as I can see that’ll only set it on first launching the view controller. I’d like to change it, for instance, when I hit a button. Can I do that? 回答1: Go to your application Plist and add this as new row &

Lock screen player's seek bar issue in iOS 7

北城以北 提交于 2019-12-19 02:43:41
问题 If I play music through iPhone's native music player in iOS 7 and access it on lock screen then I can drag the player's seek bar i.e user can interact with it. Screenshot : But if I play music from my app which supports background audio play then the player's seek bar user interaction is disabled on lock screen. I am unable to move it. Screenshot : I searched apple's documentation but didn't find anything related to this. My question is, does iOS allow 3rd party apps to interact with player's

UIAppearance setTranslucent error: Illegal property type, c for appearance setter, _installAppearanceSwizzleForSetter

大兔子大兔子 提交于 2019-12-18 18:54:13
问题 Trying out iOS 7 did: [[UINavigationBar appearance] setTranslucent:NO]; Got crash and error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** Illegal property type, c for appearance setter, _installAppearanceSwizzleForSetter:' *** First throw call stack: (0x16ad9b8 0x142e8b6 0x16ad7ab 0x72163d 0x724c34 0x169daca 0x169d8de 0x6c09 0x228ea9 0x2296e9 0x22ab5e 0x240a6c 0x240fd9 0x22c7d5 0x35a4906 0x35a4411 0x16293e5 0x162911b 0x1653b30 0x165310d 0x1652f3b

Receiving SSL error in iOS7 GM - “AddTrust External CA Root” is not trusted?

懵懂的女人 提交于 2019-12-18 17:29:50
问题 I am receiving a SSL error in my NSURLConnection class, suddenly from iOS7 GM. I cannot access any of my APIs or webView pages, and is a severe emergency. Can anybody help me here? The error is as follows: NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) I've looked up the error, and it is explained as follows: errSSLNoRootCert = -9813, /* cert chain not verified by root */ My root certificate for my domain (confirmed via browser access) is "AddTrust External

iOS7 itms-services scheme not work?

China☆狼群 提交于 2019-12-18 17:29:17
问题 I have an in-house app which I distribute over a local wifi in release page have a link like this itms-services://?action=download-manifest&url=http://192.168.1.231/app/plist/houseApp/out.plist this worked on iOS 7 Safari but when i add this page to main screen (like web app) the same link didn't work, and apache access.log have no record about /app/plist/houseApp/out.plist this worked in iOS 6 Anybody knows about this? 回答1: It seems Apple have disabled all URL schemas in iOS7 (including

iOS7 itms-services scheme not work?

陌路散爱 提交于 2019-12-18 17:29:13
问题 I have an in-house app which I distribute over a local wifi in release page have a link like this itms-services://?action=download-manifest&url=http://192.168.1.231/app/plist/houseApp/out.plist this worked on iOS 7 Safari but when i add this page to main screen (like web app) the same link didn't work, and apache access.log have no record about /app/plist/houseApp/out.plist this worked in iOS 6 Anybody knows about this? 回答1: It seems Apple have disabled all URL schemas in iOS7 (including

Share data with different types in UIActivityViewController

余生长醉 提交于 2019-12-18 17:26:56
问题 There is a extremely similar question asked by the following post: Different data for sharing providers in UIActivityViewController. But my question is different. I know how to share different different data of the same type with different activities by using itemForActivityType . For example: - (id) activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType { if ( [activityType isEqualToString:UIActivityTypePostToTwitter] ) return @

New UISearhBar in ios 7

為{幸葍}努か 提交于 2019-12-18 17:26:54
问题 Hi, guys. I have some trouble with new uisearchbar in iOS 7 in my app a have tableview with search bar in tableHeaderView it is handmade(added programmatically) - tableviewcontroller in storyboard, in method viewDidLoad i add searchDisplayController with my custom searchbar inherited from UISearchBar. all things going in navigation controller. in logic of my app in some point i release this nav controller sending dismissViewController In ios 6 it works perfect. but in ios 7 i get crash when

iOS: More tab crashes on my subclassed UITabBarController on iOS 7.1

北慕城南 提交于 2019-12-18 17:04:09
问题 I simply updated to iOS 7.1 and I get an unrecognized selection error for a function called "_layoutCells". I have a simple subclass of UITabBarController. 回答1: Note that this is a hack to avoid a bad crash until a better solution or explanation is found. I though I should share it. Simply add the following method to your UITabBarController subclass implementation: - (void) _layoutCells { // HACK ALERT: on iOS 7.1, this method will be called from deep within the bowels of iOS. The problem is

Search Bar Cancel Button don´t work in ios 7 sometimes

断了今生、忘了曾经 提交于 2019-12-18 16:47:44
问题 Cancel button in search bar don´t work in iOS 7 when search bar is initially hidden. I follow this tutorial to create a search bar in tableview: raywenderlich tutorial There are a example project in this tutorial, is better use this project than my explanation :) In iOS 5 and 6 works fine. I have reviewed all delegates. There are two possibilities. The first is to press the button when the bar is hidden, the second is to press the button when the bar is displayed (moving the table down with a