xcode4.2

Xcode 4.2 can't debug iOS 4.2.1 (8C148)

爱⌒轻易说出口 提交于 2019-11-30 20:34:57
I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem. My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors. The top center panel says "Finished running MyApp on iPod One". (iPod One is the name of my first iPod touch) There is a flicker at the bottom of Xcode as if it almost went into the debugger and was about to show the bottom output panel but it doesn't. A break point in main doesn't stop it either. I have no errors and nothing to go on. I have renewed all provisioning

Programmatically setting iphone simulator location

梦想的初衷 提交于 2019-11-30 19:04:39
I've just updated to XCode 4.2 and I see a cool feature that allows me to manually set the device location. Does anyone know of a way to accomplish the same thing programmatically? I'd like to set the location in some unit tests. Mike Akers The following AppleScript will let you set the location of the iOS Simulator. It should be possible to integrate this kind of script into a unit test script, or have your script generate the equivalent AppleEvents. tell application "iOS Simulator" activate end tell tell application "System Events" tell process "iOS Simulator" tell menu bar 1 tell menu bar

Crash/SIGABRT when I try to present a UIPopoverController

蓝咒 提交于 2019-11-30 18:36:08
Hi I am at my wits end with what I am doing wrong here. I am using ios5 and nothing crashes if I do not call presentPopoverFromBarButtonItem. Has anyone experienced anything similar? I checked the apple developer forums, google, stack overflow and couldn't find anything. Running bt on gdb didn't reveal any hints either. UIViewController *viewTwo; viewTwo = [[ViewTwo alloc] initWithNibName:@"ViewTwo" bundle:nil]; UIPopoverController *popover; popover = [[UIPopoverController alloc] initWithContentViewController:viewTwo]; [popover presentPopoverFromRect:[theButton bounds] inView:theButton

NSTextField Vertical alignment

五迷三道 提交于 2019-11-30 17:27:07
I am creating cocoa app in which i created NSTextField programmatically like this, NSView *superView = [[NSView alloc] initWithFrame:NSMakeRect(0, 300, 1400, 500)]; NSTextField *myTextField = [[NSTextField alloc] initWithFrame:NSMakeRect(180, 100, 1000, 300)]; [myTextField setStringValue:myText]; [myTextField setEditable:NO]; [myTextField setBezeled:NO]; [myTextField setDrawsBackground:NO]; [myTextField setSelectable:NO]; [myTextField setFont:[NSFont fontWithName:@"Futura" size:22]]; [superView addSubview:myTextField]; [superView setAutoresizesSubviews:YES]; [myTextField setAutoresizingMask

Create IPA file in Xcode 4.2, iOS 5.0 Beta

 ̄綄美尐妖づ 提交于 2019-11-30 15:50:24
问题 How do I create a .ipa file in Xcode 4.2, iOS 5.0 (Beta). I've already developed an application but I can not find an entitlement file. Can anyone tell me the procedure for creating a .ipa file? Thanks in advance. 回答1: If u have apple developer certificate and corresponding provisional profile means it is easy to create .ipa file in XCode 4.2 with iOS 5 sdk. 1) Select ios device in scheme. 2) Archive your project. 3) Select your archive in Organizer and share this. 4) give url which u want to

Create IPA file in Xcode 4.2, iOS 5.0 Beta

点点圈 提交于 2019-11-30 15:24:52
How do I create a .ipa file in Xcode 4.2, iOS 5.0 (Beta). I've already developed an application but I can not find an entitlement file. Can anyone tell me the procedure for creating a .ipa file? Thanks in advance. If u have apple developer certificate and corresponding provisional profile means it is easy to create .ipa file in XCode 4.2 with iOS 5 sdk. 1) Select ios device in scheme. 2) Archive your project. 3) Select your archive in Organizer and share this. 4) give url which u want to share and save your .ipa file to any location. 5) .ipa and plist file will be create. upload these and make

Should i write sqlite database file to Documents directory or Library/Caches?

前提是你 提交于 2019-11-30 15:14:08
I have read the Data Storage guidelines of Apple and am really confused as to where i should keep the sqlite database files i am creating in my app. I want to read from the sqlite files even when the app is in Offfline mode. I read that such files created should be kept in the Library/caches with the "do not backup" flag set. Please suggest me the right approach for doing the same. The answer depends on how your database files are created: According to the Data Storage Guidelines page : Only documents and other data that is user-generated, or that cannot otherwise be recreated by your

Xcode Project-Wide compiler flag

北战南征 提交于 2019-11-30 13:56:05
With Xcode 4.2 and the LLVM compiler, when compiling for ARMv6 there are some very weird bugs in the generated application (such as "width" property of CGSize returning the "height" instead). To fix this, I found I must set the compiler flag -mno-thumb. I know how to set compiler flags on a file-by-file basis, but is there a way to set a compiler flag for the entire project? You can set project wide compiler flags in the project settings under the "Language" section of the "Build Settings" tab. 来源: https://stackoverflow.com/questions/7932834/xcode-project-wide-compiler-flag

Unable to change the Price tier in the In app Purchase

孤街醉人 提交于 2019-11-30 12:55:29
问题 I'm unable to change the price of an in-app purchase. I added initially for testing purposes, but now that I'm submitting the app, I'd like to change it. Unfortunately, it doesn't seem to accept the change. It is showing me the same price tier not the updated one.what should i do ? 回答1: I had this problem too. Here's how I solved it. When you change the tier in iTunes Connect, it's not enough to then click 'done'. You need to set the schedule to 'Now' and 'None' (for start and end date) and

Programmatically set image and text on UIButton

吃可爱长大的小学妹 提交于 2019-11-30 12:38:10
问题 I need to create button programatically with an image for normal and highlighted state as well text. I cannot build it using Interface Builder, because I need to create buttons over a UIScrollView . Here is the code I have so far: - (void)loadView { CGRect fullScreenRect=[[UIScreen mainScreen] applicationFrame]; scrollView=[[UIScrollView alloc] initWithFrame:fullScreenRect]; scrollView.contentSize=CGSizeMake(320,960); UIImageView *tempImageView2 = [[UIImageView alloc] initWithImage:[UIImage