xcode4

Xcode — delete images are still getting built when building app

不想你离开。 提交于 2019-12-04 12:11:23
I am trying to clean up my app before I submit it for apple approval, but I have an issue. I have delete some unwanted background images but the app seems to think they are still there. I have delete the app completely from the phone but when I build it is still there. The image has been completely remove from the Mac it doesn't exist anywhere not even in the simulator folder /Users/******/Library/Application Support/iPhone Simulator/5.0/*********/appname.app I can't seem to figure out whats going wrong. I have had a look at a few questions like Xcode- Deleted images appear in simulator but

scrollViewDidEndDecelerating not executing

梦想的初衷 提交于 2019-12-04 12:03:09
问题 I can't seem to get scrollViewDidEndDecelerating called. I have a scrollView with 2 Views inside. Now I need it to set a value to a label in the first view when the scrollview is finished scrolling to the second view. Header File: @interface ViewController: UIViewController { UIScrollView *scrollView; UIView *view1; UIView *view2; } @property (strong, nonatomic) IBOutlet UIScrollView *scrollView; @property (strong, nonatomic) IBOutlet UIView *view1; @property (strong, nonatomic) IBOutlet

Xcode 4 and “SIGABRT” error? (only for iphone though)

六眼飞鱼酱① 提交于 2019-12-04 11:51:47
I'm new to ios development and to stackoverflow. I did try searching both stackoverflow and google before posting. I built a simple little app, originally just left it an iphone only app, but decided to make it universal in the end. I, stupidly, was messing around when i was getting to know xcode 4 and switched it to universal and then back again so i had to recopy the project and do it again. This time i started it with a universal app. (Not when i created it but after i went to project and selected it there) It created the ipad folder and mainwindow-ipad.xib file but was empty of course

How to properly create a UIButton that resizes to the text length in Xcode 4?

吃可爱长大的小学妹 提交于 2019-12-04 11:21:40
In Xcode 4 you should be able to design UI interfaces that do resize based on their content. Still it looks that the are some missing pieces regarding how to obtain this. I have a button that is configured in the XIB file to resize to the right and it has plenty of space to do that. The problem is that it doesn't seam to resize the button when the label is updated. This can be fixed by adding a [button sizeToFit]; after the label is changed. Still I am looking for a solution that works without adding this manual step into the code. I mention that there is enough space to expand the button

How do you return from an asynchronous NSURLConnection to the calling class?

强颜欢笑 提交于 2019-12-04 11:05:43
I've got the following class which makes an HTTP post request asynchronously to avoid problems on the main UI thread: @implementation DataFeeder -(void) doLookup:(NSString *)inputValue { NSString *myRequestString = [NSString stringWithFormat:@"val=%@", inputValue]; NSMutableData *myRequestData = [ NSMutableData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length ] ]; NSURL * myUrl = [NSURL URLWithString: @"http://mywebsite/results.php"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: myUrl]; [request setHTTPMethod: @"POST"]; [request setHTTPBody:

xCode4 Lua Syntax Highlight [duplicate]

北慕城南 提交于 2019-12-04 10:45:41
This question already has answers here : Closed 7 years ago . Possible Duplicate: Adding syntax highlighting to programming languages in Xcode 4.0 Is it possible to make xCode4 to do syntax highlighting on .lua files? There are plenty solutions online for xCode 3.2, but I've found none for xCode4. According to this site , the old XCode 3 syntax highlighting plugins were based on an unofficial and unsupported API. XCode 4 is a complete rewrite of XCode, so it's unlikely that API exists any more, and to my knowledge no-one has yet discovered any similar API, so it looks like you may be out of

XCode 4.2. issue: Standard (armv7)

我们两清 提交于 2019-12-04 09:57:10
I want to update my app in the App Store but when I try to upload it I get an error that armv6 is not supported in my app. The problem is I cannot even choose Armv6 as an Architecture. I have the following Architecture settings: Architectures: Standard (armv7) Base SDK: Latest iOS (iOS 5.0) Build Active Architecture Only : NO Valid Architectures : armv6 armv7 armv7f armv7k I thought because of 3 and 4 everything is set right. I can NOT change 1 for something else. What can I do? It's better to downgrade back to stable version of SDK for Distribution builds. Apple even wrote about that in

Undo “New group from selection” project xcode 4

可紊 提交于 2019-12-04 09:52:19
问题 I accidentally added my project to a group, and now I can't remove it from it in xcode 4, any ideas? If I drag it out, it asks me to create a workspace... EDIT: I reported this to apple in the bug reporter, I'll keep you guys updated 回答1: This is a project without a workspace? Close Xcode. Back up the .xcodeproj, then right click the original and Show Package Contents . Inisde, you'll see a file called project.xcworkspace . This is a workspace created by Xcode when a project is open without a

Compiling FFTW3 for IOS 5.1 on OSX 10.7

若如初见. 提交于 2019-12-04 09:27:11
A similar version of this question has been asked before ( how to compile fftw3 on iOS ) about previous versions of IOS and/or OSX, but I am unable to get fftw3 working on a actual IOS device. (Though it works fine in the simulator using the MacPorts "universal" distribution). If anyone has had any success using fftw3 please let me know how you were able to get it working! I am using OSX 10.7 and am trying specifically to run fftw on an iPad3 with IOS 5.1 installed. Thanks. 来源: https://stackoverflow.com/questions/10695053/compiling-fftw3-for-ios-5-1-on-osx-10-7

XCode 4 active architecture setting

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:23:05
I've updated the XCode to the latest 4 version (final). My project depends on a 3rd party library that was build for armv6. The problem is that i can not change the "active architecture" as it was in 3.x.x instead I see that during linking the active architecture flag is always passed as armv7. Does anyone know how to set active architecture for the build target (or for scheme) ? Thanks in advance. Answering to myself ... Yes and no. You can not change the arc but you can trick the Xcode. Set it to compile not only for active architecture and leave only archv6 in the list. Hope it helps to