ios6

Simple UICollectionView to show images behaves odd: Some Images are displayed correct, some at wrong position, some missing at all

爱⌒轻易说出口 提交于 2019-12-03 10:07:12
I want to show images in a grid on iPhone using a UICollectionView, showing 3 images a row. For a "dead simple test" (as I thought), I've added 15 JPG images to my project, so that they'll be in my bundle and I can load them simply via [UIImage imageNamed:...]. I think I've done everything correct (setting up & registering UICollectionViewCell subclass, use of UICollectionViewDataSource Protocol methods), however, the UICollectionView behaves very weird: It shows only a few of the images in the following pattern: First line shows image 1 & 3, second line is blank, next line like the first

How to integrate SIRI in iPhone app? [closed]

a 夏天 提交于 2019-12-03 10:04:14
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am developing an iPad app. I want to integrate SIRI functionality in it. So, please guide me to work on this. Actually I don't know how to start. Thanks, Cp 回答1: Till now apple not released siri's api for third

iOS 6 multiple UIWebViews: Javascript only runs in one

谁说我不能喝 提交于 2019-12-03 09:55:41
问题 An iOS 6 iPad app shows content in two UIWebViews. If both web views contain a jquery image rotator, only one will work at a time. Running < iOS 6, both work properly. If the content of the non-animating webview is reloaded, it begins to work, and the other stops. Also, in the simulator ONLY, I can sometimes cause the stopped web view to start (and the other to stop) by clicking/dragging in it. If one of the web views does NOT have javascript in it, the reloading of the stopped web view does

Javascript history function not working for web page served from homescreen on iOS 6

对着背影说爱祢 提交于 2019-12-03 09:48:05
I've seen some other posts about iOS 6's new behaviors with Web sites saved to / launched from the home screen. On iOS 5 (and earlier), we were able to use the Javascript History function for our in-app back button. In iOS 6, however, it works if you've only been to one page in the site. But if you have more than one page that you've visited, it throws a page-not-found error. It works fine in Safari (not from the homescreen), and it works if I remove the <meta name="apple-mobile-web-app-capable" content="yes" /> tag. But then I get the ugly browser chrome that I'm trying to avoid. I've seen

UIImage imageNamed: does not automatically pick retina @2x images

徘徊边缘 提交于 2019-12-03 09:16:19
问题 Let's say I have three images in a bundle or asset catalog: Default~iphone.png Default@2x~iphone.png Default-568h@2x.png On iOS 4 and later, the UIImage constructor can take the image name as follows: [UIImage imageNamed:@"Default"]; When I am on a 3.5 inch retina display (iphone) it automatically picks image (2). If on a non-retina display it picks (1). This is great. I named image 3 as specified for the 4 inch retina (iPhone 5) launch image. Is there a way to name image (3), so that when I

Can we lock the app while app goes to sleep mode in IPhone?

若如初见. 提交于 2019-12-03 09:16:06
I am working an app where lock option is included.My app starts with passcode screen.If I enter correct code then it navigates to next screen.If I dont use the app for long time it goes to sleep mode.When the user wants to run the app now, the passcode screen should appear and the user has to enter the code again.Is it possible?Is there any tutorial for this?Please dont mind to post the related code if you have done it.Thanks in advance. Kanan Vora Yes ofcourse it is possible. You must open the screen in a method called applicationDidBecomeActive in your Application Delegate. This method is

Tabbar controller with navigationcontrollers orientation ios 6

吃可爱长大的小学妹 提交于 2019-12-03 09:01:06
I'am currently working on an project where we have a tab bar controller with 4 tabs, and where each tab have an navigation controller. On each of these navigation controller there is multiple viewcontrollers pushed on it. I read a lot of post here and other places, and we have currently done the following: Subclassed UITabbarcontroller - (BOOL)shouldAutorotate { return [[[self.viewControllers objectAtIndex:self.selectedIndex]topViewController] shouldAutorotate]; } - (NSUInteger) supportedInterfaceOrientations { return [[[self.viewControllers objectAtIndex:self.selectedIndex]topViewController

iPhone Simulator 6.0 not able to connect to gamecenter in sandbox mode

孤人 提交于 2019-12-03 09:00:07
I'm trying to implement a gamecenter aware app targeted to iOS 6. To give some info on the environment I'm working on mac os 10.7.5 with XCode version is 4.5.2 and xcode is running iphone and ipad simulator version 6.0. The problem is I cannot connect to gamecenter in sandbox mode neither through ipad or iphone simulator, but the same code works as desired while testing in my iphone. I followed the gamecenter programming guide in apple's developer library and I got this atm it is called from applicationDidFInishLaunching in appdelegate: - (void)authenticateLocalUser:(UIViewController *

UINavigationBar jumps 20pixels during transitionFromViewController

[亡魂溺海] 提交于 2019-12-03 08:46:52
In trying to attempt to use Apple's UIViewController containment I have encountered a problem with animating the transition between two UIViewControllers. Here is the set up... I have created a UITabBarController and within one of the tabs I have created a UIViewController as a container. This ViewController manages the transition between a UIViewController and a UINavigationController. The before view is: When the Next button is tapped the view begins it's transition with a flipFromRight transition. During the transition, the Navigation bar is in "to" view but is located 20pixels down from

Google Maps in iOS6 [closed]

泪湿孤枕 提交于 2019-12-03 08:43:27
问题 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 7 years ago . Coming back on this Google Maps support on iOS 6. This is a serious and constructive issue that has to be addressed for a lot of apps developers who already released their Apps on iOS 5 and tied to legal compliance towards Google terms of service http://code.google.com/apis/maps/iphone/terms.html. The fact is