ios6.1

UIPageViewController programmatically turning pages does not update Page Indicator

只谈情不闲聊 提交于 2020-01-14 16:36:19
问题 When I programmatically turn the page in a UIPageViewController using a method similar to this answer, the Page Indicators are not updated. Swiping to the next/previous page updates the page indicators as expected. What do I need to do to update the Page Indicators when programmatically turning the page? i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active? I noticed in the documentation, the

UIPageViewController programmatically turning pages does not update Page Indicator

霸气de小男生 提交于 2020-01-14 16:34:36
问题 When I programmatically turn the page in a UIPageViewController using a method similar to this answer, the Page Indicators are not updated. Swiping to the next/previous page updates the page indicators as expected. What do I need to do to update the Page Indicators when programmatically turning the page? i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active? I noticed in the documentation, the

How to switch the live screen camera icons from portrait to landscape mode in iPhone?

牧云@^-^@ 提交于 2020-01-03 01:51:07
问题 I created a custom camera overlay for the live screen camera view and have imported my own custom icons for the camera, flash and flip buttons. Everything looks good in portrait mode, but when I switch the live camera screen to landscape mode, the orientation of the camera stays in portrait mode and shows this in console, "Error: CGAffineTransformInvert: singular matrix" I tried using the auto resizing mask , also have tried setting two different frames for the icons in both portrait and

Reference to ' ' is ambigous error in Xcode

风格不统一 提交于 2019-12-29 07:34:09
问题 I was working with a custom iOS framework project in Xcode.There I am getting a lot of errors mentioning "Reference to ' ' is ambigous".I am attaching the screenshot of errors.Please help me correcting this. 回答1: The error message makes me think you have two declarations of the same library functions. All of those references are from UIKit . Check to make sure only one version of UIKit is referenced in your project (check the frameworks), and make sure any libraries you have included are

unable to stop device rotation

泪湿孤枕 提交于 2019-12-24 15:18:27
问题 I have posted a question here . In which one buddy replied and gave solution. Although the solution is working on few view controllers but on view its not working. When I enter a view controller that has TabController + navigation controller on there tab Bar Items, the code doesn't work. and the views are able to rotate. I used the Following code for iOS 6.1 //For iOS6 - (BOOL)shouldAutorotate { return NO; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return

NSBundle finds mp3 file but not m4a when trying to instantiate AVAudioPlayer

六眼飞鱼酱① 提交于 2019-12-23 19:39:19
问题 I have a simple app that is supposed to play a audio file. Whenever I load a mp3 file to my NSURL is works fine and the AVAudioPlayer gets to play the song. However, when I change to a m4a file, the NSString path returns nil, like it is not able to find the path to my file, and thus the NSURL is not formed. The m4a file is of course there, in the project. It follows below the code, but I don't think is a code issue. Any ideias? Thanks. NSString *path = [[NSBundle mainBundle] pathForResource:@

iOS play video with MPMoviePlayerController

我与影子孤独终老i 提交于 2019-12-21 04:29:34
问题 I got this piece of code: theMoviPlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:@"/Resources/disc.mp4"]]; theMoviPlayer.controlStyle = MPMovieControlStyleFullscreen; theMoviPlayer.view.transform = CGAffineTransformConcat(theMoviPlayer.view.transform, CGAffineTransformMakeRotation(M_PI_2)); UIWindow *backgroundWindow = [[UIApplication sharedApplication] keyWindow]; [theMoviPlayer.view setFrame:backgroundWindow.frame]; [backgroundWindow addSubview

Automatically send SMS on iOS 6 jailbreak

若如初见. 提交于 2019-12-20 04:14:21
问题 Having spent a couple of months on the internet and stackoverflow, I cannot find a way to send an SMS from an iPhone with iOS 6 (6.1 to be precise) when an event occurs or with a tweak. I've read that apple has changed the way SMS messages are being processed since iOS 5 and to be specific The main difficulty comes from the fact that Apple introduces an IPC mechanism in iOS 6 that resembles the "Share" functionality in Android. Unlike before where sending an SMS is a direct call in

NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView'

岁酱吖の 提交于 2019-12-19 05:53:38
问题 After Xcode Update (5.1) my app crashes when i try to run in iOS 6.x. I have an app where I have a custom cell and constraints. Auto layout is unchecked for the xib file. The error I get is: *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITableViewCellSeparatorView' I only found one thread about this issue in another forum, but without a solution, just a test that I've done too and got the same error. 回答1: I

iOS Localizable.strings not being retrieved from BASE file

怎甘沉沦 提交于 2019-12-18 07:18:50
问题 I am having a problem getting localization on iOS to work the way I think it is suppose to, but this is my first foray into localization so maybe I am misunderstanding. I have three Localizable.strings files: Base "TAB_TITLE_Camera" = "CAMERA"; English "TAB_TITLE_Camera" = "Camera"; Spanish "TAB_TITLE_Camera" = "Cámara"; NSLocalizedString(@"TAB_TITLE_Camera", nil) iOS 6.1 On Xcode 5 with a 4th generation iPod Touch running iOS 6.1 , English and Spanish seem to work, but if I change to German