iphone-sdk-3.2

Lauching App with URL (via UIApplicationDelegate's handleOpenURL) working under iOS 4, but not under iOS 3.2

我与影子孤独终老i 提交于 2019-11-28 16:01:32
I have implemented UIApplicationDelegate's application:didFinishLaunchingWithOptions: and application:handleOpenURL: according to specification, i.e., application:didFinishLaunchingWithOptions: returns YES and application:handleOpenURL: opens the URL. The code works under iOS 4 (in both cases, i.e., when the app is launched and when it becomes active from suspended state). However, the code does not work under iOS 3.2. I give an answer to my own question. Finding out the solution took me a while and was quite frustrating. If you do an internet search you find some partial answers, but it still

Setting The Wallpaper On An IPad

…衆ロ難τιáo~ 提交于 2019-11-28 14:41:38
I think there is no way to set the lock screen wallpaper on the iPhone programmatically (with ref to this question ), but with the 3.2 SDK and the ability to set the wallpaper on the home screen on the iPad, does the SDK allow this to be done via APIs now? I looked up the developer reference, but i could not find anything useful. I don't think there's a method for that. The user can change it in the settings. But if you could change it progmatically, I'm sure there would be a lot of people who would abuse it... 来源: https://stackoverflow.com/questions/2612160/setting-the-wallpaper-on-an-ipad

Draw underlined / strikethrough text ( MULTILINE STRING )?

久未见 提交于 2019-11-27 16:52:30
问题 I have to draw underlined-multiline text with all types of text alignment. I have searched on forums and got some results like: http://davidjhinson.wordpress.com/2009/11/26/underline-text-on-the-iphone/ http://forums.macrumors.com/showthread.php?t=561572 But all draw text for single line only. while i have multi-line text. The situation even become worse when the text alignment is centered. I searched and found that in iphone-sdk-3.2 there are some core-text attributes for underlining a text

Navigate to a SplitViewController

こ雲淡風輕ζ 提交于 2019-11-27 15:52:40
I've been playing around with the iPad SDK looking for ways to improve my current iPhone app. I've got a couple place where I think the new "SplitView" would look pretty good. My question is if it's possible to navigate to a "SplitView" with my current navigation based application? Mainly I'm not sure how to push that SplitViewController onto my current stack of views. Any thoughts? DevDevDev It should always be the root controller according to Apple. The split view controller’s view should always be installed as the root view of your application window. You should never present a split view

iPhone SDK 3.2 and UIAppFonts

百般思念 提交于 2019-11-27 15:08:43
问题 I've added my custom font to UIAppFonts and it's loaded just fine: (shows up in [UIFont familyNames] ). When I manually set the font in viewDidLoad { [myLabel setFont: [UIFont fontWithName:@"CustomFont" size: 65.0]]; } everything works and the font is rendered. However doing the same thing in IB doesn't (some other default font is used instead). Having to create IBOutlets for each label and fixing up the fonts manually in viewDidLoad is pretty painful. Anyone else had problems getting the

UIKeyboardBoundsUserInfoKey is deprecated, what to use instead?

▼魔方 西西 提交于 2019-11-27 10:11:40
I'm working on an iPad app using 3.2 sdk. I'm dealing with obtaining the keyboard size to prevent my textfields from hidding behind it. I'm getting a Warning in Xcode -> UIKeyboardBoundsUserInfoKey is deprecated what should I use instead not to get this warning? Jay I played with the previously offered solution but still had issues. Here's what I came up with instead: - (void)keyboardWillShow:(NSNotification *)aNotification { [self moveTextViewForKeyboard:aNotification up:YES]; } - (void)keyboardWillHide:(NSNotification *)aNotification { [self moveTextViewForKeyboard:aNotification up:NO]; } -

Lauching App with URL (via UIApplicationDelegate's handleOpenURL) working under iOS 4, but not under iOS 3.2

我与影子孤独终老i 提交于 2019-11-27 09:31:17
问题 I have implemented UIApplicationDelegate's application:didFinishLaunchingWithOptions: and application:handleOpenURL: according to specification, i.e., application:didFinishLaunchingWithOptions: returns YES and application:handleOpenURL: opens the URL. The code works under iOS 4 (in both cases, i.e., when the app is launched and when it becomes active from suspended state). However, the code does not work under iOS 3.2. 回答1: I give an answer to my own question. Finding out the solution took me

Is there a specific Xcode compiler flag that gets set when compiling for iPad?

寵の児 提交于 2019-11-27 08:55:05
Is there a specific Xcode compiler flag that gets set when compiling for iPad? I want to conditionally compile iPad vs iPhone/iPod Touch code for example: #ifdef TARGET_IPAD code for iPad #else code for iPhone #endif I know there is already TARGET_OS_IPHONE and TARGET_CPU_ARM in TargetConditionals.h but anything that easily and specifically targets iPad? -Rei The correct API to use for run-time checking of iPad vs. iPhone/iPad Touch is: BOOL deviceIsPad = ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad); The UIDevice header filer also includes a convenient macro, UI

Receive message “A signed resource has been added, modified, or deleted” when trying to debug an App on iPhone

此生再无相见时 提交于 2019-11-27 07:11:39
While attempting to debug a build created using the 3.2 SDK on an iPhone device I receive the message "A signed resource has been added, modified, or deleted.". I can clean, rebuild, then install with no error, but if I try to install without cleaning the error shows. Anyone have an idea as to what might be causing this? I found a workaround for the bug. If you delete the .app file in build/Debug-iphoneos/ before building for the device, the app gets installed without errors. And there is a simple way to do that before every build. Make sure you have selected "Device" in the dropdown overview

UISplitViewController in a TabBar ( UITabBarController )?

吃可爱长大的小学妹 提交于 2019-11-27 06:12:52
I am in kind of situation that I need to start with a tab based application and in that I need a split view for one or more tabs. But it seems that split view controller object can not be added to the tabbarController. (Although tabbar object can be added to the splitviewcontroller). The problem can be seen otherways: I have a full screen in the left part I have a table view when any row is selected in the table a popover should come out pointing that row. Now when any row in the popover is selected the rows in this popover comes to the left under the selected row (only this row would be