xcode4

Background Loading a url in a uiwebview

假如想象 提交于 2020-01-04 03:18:16
问题 Hi I'm a have an app in which i load webpage in a uiwebview .So each time it takes too much time for loading . So i need to load the webpage in a background mode. Any one know how to done this. Any help would be appreciable. 回答1: - (void) start_Web_View { UIWebView *wv = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,320,460)]; wv.delegate = self; [wv loadRequest: [NSURLRequest requestWithURL: @"http://long_loading_web_site"]]; // go do something else to amuse the user while the web site

Error : CFBundleVersion must be higher than the previously uploaded version

℡╲_俬逩灬. 提交于 2020-01-04 02:39:12
问题 I want to upload new version of my app. The old version of my app in iTunes was 2.1 and I am uploding new version as 2.2. But when i am trying to validate my app it will give an error "CFBundleVerion must be higher than the previously uploaded version". I am also incrementing the CFBundleVersion as 3.0 and BundleVersion as also 3.0 from previous versions. My app is in Xcode 4.0. What can be problem? Any help would be appreciated. 回答1: You need to change the bundle version in your info.plist .

doesNotRecognizeSelector exception while running ibtool on a xib resource files

白昼怎懂夜的黑 提交于 2020-01-04 02:09:13
问题 Anyone knows why I get this crash from the ibtool? ibtool --generate-strings-file "my.strings" "myViewController.xib" Result: 2011-04-18 17:49:41.848 ibtoold[32147:107] -[NSCFString count]: unrecognized selector sent to instance 0x20055f7e0 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.ibtool.errors</key> <array> <dict> <key>description</key> <string

Storyboards and nibs compatible?

霸气de小男生 提交于 2020-01-03 19:04:45
问题 Can I use storyboards for all of my app, and then have one nib that it pushes to, or is the two being used at the same time not possible? 回答1: The storyboards and nibs can go together in one app, but if your deployment target is below iOS 5, then it won't work. The storyboards will only work on iOS 5.x. And of course, you'd need to write code yourself to push a nib. 回答2: WWDC 2011 Videos Session 309 - Introducing Interface Builder Storyboarding 36:00 API 41:00 Adoption (including incremental

How do you use Compile Sources in Xcode 4.0?

纵饮孤独 提交于 2020-01-03 17:08:40
问题 In Xcode 3.0, you can use Project Targets in Groups & Files panel to remove unwanted dependency files. Below is the instruction. Click the arrow next to Targets until you expand it in the Groups & Files panel. Click the arrow next to xauth. Click Compile Sources. Delete the following YAJL dependency files. How do you do it in Xcode 4.0? 回答1: It's very similar: Select the project in the project navigator. Select the Target in the detail view. Select the Build Phase tab. Expand the Compiled

Is it possible to customize invisible's characters in xcode4?

牧云@^-^@ 提交于 2020-01-03 08:09:11
问题 I'm using xcode 4 and I would like to see special characters (spaces, tabs, etc.) all time. I could toggle showing them by "Editor"->"Show Invisibles". But the way how it's showing in xcode doesn't satisfy me: Is it possible to customize this characters? Thanks. 回答1: i do it by customize the key binding set a key shortcut for the show invisible character in the xcode->preferences->key binding enter invisibles in search box "invisibles" option 'show invisible' appear set a shortcut for it of

Why do I get “could not be added to your itunes library because it is not a valid app” error when trying to install Ad-Hoc build?

做~自己de王妃 提交于 2020-01-03 07:29:08
问题 I've recently upgraded my Mac to Lion, and also Xcode 4. In Build Settings, I've set "Code Signing" for "Release" to be "iPhone Distribution" which matches our Ad-Hoc provisioning file (which we've used in the past, on Snow Leopard/Xcode 3). I have deleted the old Entitlements file (as it's apparently no longer used by Xcode 4). In the Scheme section, I've set Archive to use the Release build. I'm building with Product > Archive. I'm saving the file by going into the Organiser and clicking

does an entry in Instruments “leaked block” during application running imply memory leak?

懵懂的女人 提交于 2020-01-03 04:56:06
问题 does an entry in Instruments "leaked block" during application running imply memory leak? That is, if one is half way through using the iPhone application, where you might have some variables that have been retained but it hasn't got to the part of the application where it gets released, then do these show up as leaked blocks or not? If the answer is that variables which have not been finished with do show up here as leaked blocks, then this would be quite confusing then if you are stopping

How to add Private Frameworks into Project?

耗尽温柔 提交于 2020-01-03 04:23:24
问题 I have a framework that's part of my app and I want to add it as a private framework so I can distribute it. However, I couldn't find a way how to do it. Apple does provide steps on how you should add private frameworks, but they're too brief to follow. If anyone can point my to the right way on how to do this, I'd be really glad. Thanks. 回答1: Apple already provided steps for Embedding a Private Framework in Your Application Bundle. You should read this document. 来源: https://stackoverflow.com

Xcode is not using 'Header Search Path' to find my header files

孤人 提交于 2020-01-02 19:28:29
问题 I have just downloaded and compiled curl. In my /usr/include folder I can see folder, 'curl' and I can see that I do, indeed, have '/usr/include/curl/curl.h'. However I cannot talk XCode into looking there when compiling. #import <curl/curl.h> In my target's properties I have included '/usr/include' to 'Header Search Paths'. The build continues to fail stating that it cannot find 'curl/curl.h' Am I not adding my search paths correctly? Thanks 回答1: User Header Search Paths - searched for