ios6

Can I use the style of iOS 6 UITabBar?

北城余情 提交于 2019-12-24 07:59:33
问题 In iOS 6, the UITabBar has a different style (like in the App Store). Is it a predefined style that we can use or is it just a customized tab bar? I had a look at the UITabBar reference but I didn't find anything that looks like predefined style. Edit: I just made a new tab bar app using iOS 6 SDK, targeting only iOS 6 and the tab bar style is the old one. The style I get : (source: apple.com) The style I would like to get : (source: apple.com) 回答1: You can customise the tabbar via appearance

Touchstart event is not firing inside iframe iOS 6

左心房为你撑大大i 提交于 2019-12-24 07:43:00
问题 I have a problem while selecting the text in IOS 6.The touchstart event is not firing inside an iframe while in iOS 6. On iOS 5 this is working fine. 回答1: I also had the same problem but only in some of my iframes. Why only some of them, I don't know. But I managed to get the event firing consistently in all of them by explicitly having an event listener on touchstart events in the context of the document containing the iframes. So adding the following code for the doc containing the iframe

iOS UIBarButtonItem alignments

和自甴很熟 提交于 2019-12-24 07:10:10
问题 In my app I added two UIBarButtonItem with navigation bar. In iOS6 and below it looks like this But when I run my app in iOS7 it looks like issue is: refresh button goes down. So please help me to display refresh button equal to 'today' button. Below is the code I'm using , UIBarButtonItem* todayButton = [[UIBarButtonItem alloc] initWithTitle:@"Today" style:UIBarButtonItemStyleBordered target:self action:@selector(showTodayAction:)]; UIBarButtonItem *refreshButton = [[UIBarButtonItem alloc]

iPhone - During the app launch the app goes into background

痞子三分冷 提交于 2019-12-24 07:05:16
问题 Recently I have come across a problem, where my app goes into background during initial launch, but this only happens on iPhone 4S with iOS6. I have tested on: simulator, with different hardware/software configurations iPhone 5 (iOS 6) iPhone 4S (iOS 5.1) iPad2 (iOS 6) and it is working on all of them, but on the iPhone 4S with iOS6 the launch of the app takes about 20s before going into background, if you "re-launch" the app after a couple of seconds you see that it is still running and

iPhone - During the app launch the app goes into background

只谈情不闲聊 提交于 2019-12-24 07:05:04
问题 Recently I have come across a problem, where my app goes into background during initial launch, but this only happens on iPhone 4S with iOS6. I have tested on: simulator, with different hardware/software configurations iPhone 5 (iOS 6) iPhone 4S (iOS 5.1) iPad2 (iOS 6) and it is working on all of them, but on the iPhone 4S with iOS6 the launch of the app takes about 20s before going into background, if you "re-launch" the app after a couple of seconds you see that it is still running and

EXC_BAD_ACCESS on NSSearchPathForDirectoriesInDomains

佐手、 提交于 2019-12-24 06:38:31
问题 I am working on a new release for an iOS application that was developed by another company but is now my responsibility. I have very little experience with objective C in general and iOS development in particular, but I'll try to convey my problem as best I can. I have the following method that I neither made nor changed over the course of my improvements: - (Boolean)ShouldWeDownloadImage:(NSString*)p_ImageName { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,

Check bluetooth state in iOS

随声附和 提交于 2019-12-24 06:35:17
问题 I have an application (I am not going to submit this app to apple app store) using which I want to check whether bluetooth is turned on. If it is turned on then I have to display an alert. - (void)centralManagerDidUpdateState:(CBCentralManager *)central{ switch (central.state) { case CBCentralManagerStatePoweredOn:{ //alert view break; } } And in viewdidload I did like this CBCentralManager * manager = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; but this is not working in

Springboard crash when app is restored from push notification from GameCenter

给你一囗甜甜゛ 提交于 2019-12-24 05:51:34
问题 I'm developing a turn based game using GameCenter and constantly recieving a SpringBoard crash below. Using ARC. Iphone 4 on ios 6.0.1 Please help to understand the reason, i've been fighting with it for about two weeks. What was found already: a huge leak in AVFoundation framework, replaced AVAudioPlayer with AudioToolbox calls, but you probably all know about it, crash became more rare case, so i suppose it's actually memory issue but don't know where to dig further found a leak in

iOS6, UIWebView and position:fixed

混江龙づ霸主 提交于 2019-12-24 04:57:10
问题 We have a PhoneGap application that has navigation bar and tab bar "implemented" as divs with fixed position (see screen 1). In iOS6 there's some strange behavior with these divs when the keyboard is shown. When we type a first letter the div will disappear and the blank area is displayed instead. When we're closing a keyboard everything goes back to normal. This happens in UIWebView only and doesn't happen in Mobile Safari. Did anyone had something similar? I suppose we shouldn't be alone.

status bar becomes gradient after closing video in landscape mode

北城余情 提交于 2019-12-24 04:16:15
问题 Below is happening with iOS 6. I am playing video which can be played in potrait or landscape mode. Once video's Done button is pressed I am making screen to potrait mode programmatically. The problem is when I open app, I have black status bar. When I play video as potrait only, I still see black status bar as shown below. Now when I play video and shift rotation after after playback is done and click Done button, I make app in potrait mode. BUT now my status bar is changed to light black