xcode4.2

Xcode- Deleted images appear in simulator

只愿长相守 提交于 2019-11-27 13:04:14
问题 Mac OS X Lion v10.7.2 Xcode v4.2.1 Build 4D502 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011) I have a bunch of images in my resource folder, but when I delete those images and run in simulator again, the images are still there. I have completely deleted the images from the Project Editor window (not from Finder), and I used DELETE (not Remove Reference Only), and they are still showing

Xcode 4.2 iOS Empty Application and storyboards

会有一股神秘感。 提交于 2019-11-27 10:45:46
问题 I'm an Xcode newbie, and I'm trying to make my first training app. Since apparently Empty Application template is the only template that offers pre-integrated Core Data, I choose that. However, after that, I can't get UI to work (it remains empty). What I did: Empty Application template New iPad Storyboard file Splashed Tab Bar Controller onto it Changed Main Storyboard in Project's Summary view Hit ⌘R Stared at pure-white iPad screen, without any tabs I tried diffing against another project

IBOutlet properties does not update when using prepareForSegue method

徘徊边缘 提交于 2019-11-27 09:33:24
I am having problem passing value to a IBOutlet property of destinationViewController but it works fine on ordinary property see code below - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"NewsCellToDetail"]) { testViewController *viewController = segue.destinationViewController; viewController.titleLabel.text = @"test"; // set the IBOutlet label text to something NSLog(@"%@",viewController.titleLabel.text); // this will output to nil viewController.textTest = @"testing2"; // set the property to something NSLog(@"%@", viewController

Xcode-Increment build number only during ARCHIVE?

风流意气都作罢 提交于 2019-11-27 09:10:16
问题 I have found a few other posts that show how to add a script to increment the build number with a script: Better way of incrementing build number? Xcode project's "Build number" Can Xcode insert the version number into a library's filename when building? But what I want to do, is only increase the build number when I use ARCHIVE (both before and after). Example: If current build number is 21, then when I choose Product > Archive the build number will be increased to 22, it will go through its

how to resolve the issue: “'Instance method '-arrayByPerformingSelector:' not found (return type defaults to 'id')”

拥有回忆 提交于 2019-11-27 08:31:14
问题 i saw in one post -(id)arrayByPerformingSelector declaration in interface should do , but when i tried it this declaration was treated as separate method and incomplete implementation issue came... sorry this is quite a silly doubt i am asking but I'm a newbie to iOS and wasn't able to find out whats wrong with this.. self.segmentedControl = [[UISegmentedControl alloc] initWithItems:[viewControllers arrayByPerformingSelector:@selector(title)]]; self.segmentedControl.segmentedControlStyle =

Editing Custom UIView Subclasses in Storyboard

走远了吗. 提交于 2019-11-27 08:31:14
问题 I have an application that uses a UIScrollView to page between a number of dynamically generated UIViews. Right now, I have to programmatically set the layout and ui elements of these UIViews, but I was wondering if there is any way to edit the interface of a subclass of UIView in storyboard (independent of a view controller). Thanks in advance. Edit: Just for reference, I'm using Xcode 4.2 with iOS 5. 回答1: UPDATE As of Xcode 7, you can edit a standalone view in a storyboard. Drag a view from

Xcode 4 - clang error

空扰寡人 提交于 2019-11-27 08:05:27
I'm migrating from Xcode 3.5 to Xcode 4 and while I'm trying to Archiving my app for AdHoc distribution. I received this error Precompile MyApp_Prefix.pch ProcessPCH /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth MyApp_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/return/Projects/iphone-MyApp setenv LANG en_US.US-ASCII setenv PATH "/Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin:/Xcode4.2/usr/bin:/usr/bin:/bin:/usr

App submission failed due to icon dimensions (0 x 0)

荒凉一梦 提交于 2019-11-27 07:13:14
I am trying to submit an app which is only for iPhone. The error showed " iPhone/iPod Touch: Icon.png: icon dimensions (0 x 0) don't meet the size requirement. The icon file must be 57x57 pixels, in .png format. May I know why this happens? I try to change the plist setting and i am sure my icon is at the right size. It shows perfectly on my iPhones. I have searched for few post here but still cannot find the solution. Could anyone knows the problem? Thanks According to this solution https://devforums.apple.com/message/612098#612098 make this steps: Install ApplicationLoader_2.5.1.dmg (Just

ios5 ARC what is the compiler flag to exclude a file from ARC?

三世轮回 提交于 2019-11-27 07:02:54
Can anyone help me remember what was the flag to tell the XCode to not use ARC for some file? I had several files in my project marked as such... Until I added another file and decided to convert that one to ARC. Sounds easy, right? I expected that I would be able to simply check a file that I want and let the XCode do it's magic. Well, not so easy, during pre-check it stripped all -Noarc flags from the files and now I need to manually re- apply the flag to several files. the moral of this story is: once your project is in ARC and you have some files marked as no ARC, do not re-run the convert

Can't connect IBOutlet using Xcode 4.2.1, iOS 5.0 and Storyboards

徘徊边缘 提交于 2019-11-27 06:32:49
问题 I'm trying to connect an IBOutlet in a class (DataViewController) to another class (RootViewController) so that I can access the instance of RootViewController in DataViewController. There are no compile warnings or errors. When I select DataViewController in the IB scene, I can see the outlet I've defined in Connections Inspector->Outlets. But when I try to drag a connection from the outlet to RootViewController, it doesn't work. It just fails without any error or indication of what's wrong.