iphone-sdk-3.0

idleTimerDisabled not working since iPhone 3.0

烈酒焚心 提交于 2019-11-26 15:58:21
问题 I have used: [UIApplication sharedApplication].idleTimerDisabled = YES; in a number of Apps developed and running under iPhone OS 2.x and never had any problems with it. They were clock apps so needed to run constantly and ignore the iPhone's idle Timer setting. However, trying to achieve the same with a new App running OS 3.0 (and which needs to be deployed under 3.0 as it uses some 3.0 APIs) I've found the idle Timer to be either ignored or inconsistent. My App plays music from the iPod

Deactivate UIScrollView decelerating

╄→гoц情女王★ 提交于 2019-11-26 15:58:02
问题 Is there a way to deactivate the decelerating of a UIScrollView? I want to allow the user to scroll the canvas, but I don't want that the canvas continues scrolling after the user lifted the finger. 回答1: This can be done by utilizing the UIScrollView delegate method scrollViewWillBeginDecelerating to automatically set the content offset to the current screen position. To implement: Assign a delegate to your UIScrollView object if you have not already done so. In your delegate's .m

How to get UIMenuController work for a custom view?

戏子无情 提交于 2019-11-26 15:27:14
问题 I'm trying to get the following code work: UIMenuController * menu = [UIMenuController sharedMenuController]; [menu setTargetRect: CGRectMake(100, 100, 100, 100) inView: self.view]; [menu setMenuVisible: YES animated: YES]; The menu instance is ready but it doesn't show - the width is always zero. Or is there some sample code on this UIPasteboard/UIMenuController topic? 回答1: I was not able to get it working even when I read all of your answers. I'm presenting ready code that will work for

Learning the basics of UIScrollView

自闭症网瘾萝莉.ら 提交于 2019-11-26 15:26:14
问题 I've been having a very hard time finding good examples of UIScrollView. Even Apple's UIScrollView Suite I find a bit lacking. I'm looking for a tutorial or example set that shows me how to create something similar to the iPhone Safari tab scrolling, when you zoom out from one browser window and can flick to others. But I'm having a hard time just getting any old view showing within a scroll view. I have a view set up with an image in it, but when I add it to the scroll view, I only get a

iphone - How do I add videos to iPad simulator?

不打扰是莪最后的温柔 提交于 2019-11-26 15:22:36
问题 No, dropping the videos to ~/Library/Application Support/iPhone Simulator/3.2/Media/DCIM/100APPLE does not work totally, because the simulator can see the video on Photos.app, but when I try to pick a video using UIImagePickerController my application crashes. I think this may have some relation to the format the video has to have. I am using QuickTime to generate the video. I am using the settings "for iPhone"... so it is generating a M4V with 480x360 pixels H264. I have tried to create a

UIModalTransitionStylePartialCurl with UITabBarController

你。 提交于 2019-11-26 14:34:27
问题 This question has been asked a lot e.g. here but as far as I can see is yet to be answered in full. I have a UITabBarController with a UINavigationController as the root vc for one of the tabs, which itself has a MKMapView as its root vc. The behaviour I want is for the map to partially curl upwards, while leaving the tab bar in place (similar to the Maps app). So far all I have managed to get working is for the whole view to curl, which isn't as nice. Solutions I have seen are to set the

Dynamic (Default.png) splashscreen in 3.0 [iPhone SDK]

ε祈祈猫儿з 提交于 2019-11-26 14:32:26
问题 I know it's possible to create a dynamically changable Default.png by creating a symbolic link. But that's not possible in iPhone SDK 3.0 anymore (only in 2.0). How can I make this in 3.0, or is this impossible? Tim This worked on iPhone OS 2.0 http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone but not on iPhone OS 3.0 anymore. The default-screen is always black. I can change the default-screen in the documents-folder and the symbolic-link does link to that file. I tested

Categories in static library for iPhone device 3.0

◇◆丶佛笑我妖孽 提交于 2019-11-26 14:17:17
问题 I have categories in my static library. Any application developer should set -ObjC flag to "Other Linker Flags" to use my static library properly. It works fine for iPhone device/iPhone Simulator 2.x and iPhone Simulator 3.0. But it crashes for iPhone device 3.0. As written in this article it is new linker bug. They suggest to use one more linker flag: -all_load. But when I add this flag, build fails too, because there are duplicate symbols. How to use categories in static libraries for

How to update iPhone SDK without having to re-download Xcode?

被刻印的时光 ゝ 提交于 2019-11-26 13:22:16
问题 Silly question - Is there a way to download the iPhone SDK without Xcode when Apple releases an update? 回答1: As far as I understand you cannot download the SDK separately - and even if you could, I wouldn't recommend it. Using the bundled SDK+Xcode release is the best idea in my opinion, as it will be working for you out of the box. I know it's annoying having to download such a large amount of data for an SDK (not all of us have 100mbps pipes to play with!) but for ease of development, it's

Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile

馋奶兔 提交于 2019-11-26 12:59:58
问题 I get this build error when I build my iPhone project to run on my device: **Code Sign error: The identity \'iPhone Developer: x Xxxxx\' doesn\'t match any identity in any profile** My development code signing certificate expired so I got a new one. On my first attempt I created a new CSR and got the message above. The second time I reused my original CSR and got the same result. Another strange thing is the new certificate has an extra string with brackets after my name in the \"common name\