iphone-sdk-3.2

setFetchLimit and sectionNameKeyPath on iPhone OS4 (XCode 3.2.3) cause crash

孤人 提交于 2019-12-05 07:08:00
问题 Previously, on iPhone OS 3.2 with XCode 3.2.2 this used to work fine. I have created a small test to prove it. An NSManagedObject with 2 attributes, "group" and "vaue". Both strings. When setting up an NSFetchedResultsController to be used in the TableViewController, I set up the setFetchLimit on the request and I set the sectionNameKeyPath to "group", since I want the result entities to be grouped in sections. The former behaviour (prior iPhone OS 4 and XCode 3.2.3) would return the

how to add new font to Xcode 3.2?

不问归期 提交于 2019-12-05 02:12:55
问题 please tell me how to add new font to iphone xcode3.2. 回答1: This functionality isn't built into UILabel/UIFont in iOS < 3.2. But there is a third-party solution you can use: FontLabel In iOS 3.2+, there's the UIAppFonts plist key! Just do this before using it: add your font file (such as myfont.ttf ) to your project, then edit the Info.plist like so: info.plist http://cl.ly/97da7a4f67b1b81a540f/content 回答2: The above methods worked for me in xcode 3.2! Thanks!: step 1: drag your font into

how to add new font to Xcode 3.2?

為{幸葍}努か 提交于 2019-12-03 19:38:19
please tell me how to add new font to iphone xcode3.2. This functionality isn't built into UILabel/UIFont in iOS < 3.2. But there is a third-party solution you can use: FontLabel In iOS 3.2+, there's the UIAppFonts plist key ! Just do this before using it: add your font file (such as myfont.ttf ) to your project, then edit the Info.plist like so: info.plist http://cl.ly/97da7a4f67b1b81a540f/content The above methods worked for me in xcode 3.2! Thanks!: step 1: drag your font into your project (prob a good idea to not have spaces in the font name) step 2: add a row to your info.plist file like

isEqual doesn't always work for NSIndexPath? What can I use in its place?

天大地大妈咪最大 提交于 2019-12-02 20:12:44
I've got some code that relies on comparing two NSIndexPaths and executing different code based on their equality or lack thereof (using -isEqual). Most of the time it works properly, but sometimes it doesn't. I've used the debugger console to test the two indexpaths during code execution, and they look identical to me. Here's the code: - (BOOL)selectedStreetIsSameAsLastSelectedStreet { return [self.indexPathOfSelectedStreet isEqual:self.previousObject.indexPathOfSelectedStreet]; } Here's the output during the execution of the code: (gdb) po self.indexPathOfSelectedStreet <NSIndexPath

iPhone Debugging Error launching remote program: failed to get the task for process 907

独自空忆成欢 提交于 2019-12-01 00:27:06
Created an app for adhoc distribution and installed on iphone but it is not working on the installed iphone,Tried connecting the iphone to mac and debug the app but it throws up error stating " Error launching remote program: failed to get the task for process 907." is there a way to debug the adhoc distribution provision file from xcode David Maymudes No, you can't debug an AdHoc build in XCode--setting get-task-allow to FALSE in your Entitlements.plist basically says "don't allow the debugger to connect to this", and is required for AdHoc and AppStore builds. See What does get-task-allow do

iPhone Debugging Error launching remote program: failed to get the task for process 907

喜你入骨 提交于 2019-11-30 19:57:14
问题 Created an app for adhoc distribution and installed on iphone but it is not working on the installed iphone,Tried connecting the iphone to mac and debug the app but it throws up error stating " Error launching remote program: failed to get the task for process 907." is there a way to debug the adhoc distribution provision file from xcode 回答1: No, you can't debug an AdHoc build in XCode--setting get-task-allow to FALSE in your Entitlements.plist basically says "don't allow the debugger to

Using UIScreen to drive a VGA display - doesn't seem to show the UIWindow?

自作多情 提交于 2019-11-30 12:21:18
问题 HI there, I'm trying to use UIScreen to drive a separate screen with the VGA dongle on my iPad. Here's what I've got in my root view controller's viewDidLoad: //Code to detect if an external display is connected to the iPad. NSLog(@"Number of screens: %d", [[UIScreen screens]count]); //Now, if there's an external screen, we need to find its modes, itereate through them and find the highest one. Once we have that mode, break out, and set the UIWindow. if([[UIScreen screens]count] > 1) //if

Using UIScreen to drive a VGA display - doesn't seem to show the UIWindow?

落爺英雄遲暮 提交于 2019-11-30 02:29:15
HI there, I'm trying to use UIScreen to drive a separate screen with the VGA dongle on my iPad. Here's what I've got in my root view controller's viewDidLoad: //Code to detect if an external display is connected to the iPad. NSLog(@"Number of screens: %d", [[UIScreen screens]count]); //Now, if there's an external screen, we need to find its modes, itereate through them and find the highest one. Once we have that mode, break out, and set the UIWindow. if([[UIScreen screens]count] > 1) //if there are more than 1 screens connected to the device { CGSize max; UIScreenMode *maxScreenMode; for(int i

Draw underlined / strikethrough text ( MULTILINE STRING )?

 ̄綄美尐妖づ 提交于 2019-11-29 02:29:56
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 but no idea how to use that. Besides if I use these my problem would not be solved fully. As I have to

iPhone SDK 3.2 and UIAppFonts

倾然丶 夕夏残阳落幕 提交于 2019-11-28 23:56:02
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 custom font support to work with 3.2 SDK and IB? Opened a bug report with Apple and turns out it really is