xcode4

Build app with Xcode 4 - it always show some error about PNG image

老子叫甜甜 提交于 2019-12-28 07:58:20
问题 When I build my app with Xcode 4 it always show this error message: CopyPNGFile /Users/michaelchen/Library/Developer/Xcode/DerivedData/iMusicBox-boeawugacmhacbdtyymnprzfobyq/ArchiveIntermediates/iMusicBox/InstallationBuildProductsLocation/Applications/iMusicBox.app/list_cell.png Images/list_cell.png cd /Volumes/WORK/Works/iMusicBox setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" "/Developer/Platforms/iPhoneOS.platform

Cannot install psycopg2 on OSX 10.6.7 with XCode4

天大地大妈咪最大 提交于 2019-12-28 05:34:05
问题 Trying to install psycopg2 on OSX results in the following: building 'psycopg2._psycopg' extension creating build/temp.macosx-10.6-universal-2.6 creating build/temp.macosx-10.6-universal-2.6/psycopg gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090003 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN

Finding all references of a variable or a method in Xcode4

↘锁芯ラ 提交于 2019-12-28 04:22:08
问题 There'a a similar question here but I couldn't make use of the answers in XCode 4. I googled it but I couldn't come up with anything useful either. What's your effective method of getting this information? 回答1: Find in project, though if you are searching to change the name everywhere, better would be to use the Refactoring menu. EDIT: You can use Refactoring to find where a specific variable is referenced. Select the variable and choose Edit->Refactor->Rename. In the refactoring screen,

how to implement application tests in xcode4?

ぐ巨炮叔叔 提交于 2019-12-28 02:39:09
问题 I'm trying to add some Tests for my application. Following the Document from Apple, I add two testing bundles to my project. The logic tests are no problem, but when I try to make the application tests on a device I always get the error that the logic tests don't run on a device. In Xcode 3 there is no problem with that. Only Xcode 4 throws this error... Any suggestions? Thanks, Tim 回答1: i was also having problems with setting up application tests in xcode4. A solution that worked for me was

Pushing View Controllers in UITableViewController Grouped

China☆狼群 提交于 2019-12-26 03:55:11
问题 So, i have 3 section like i said in my previous question, "A", "B", "C", for example. This is the code i'm using: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { switch (indexPath.row) { case 0: [self.navigationController pushViewController:[[[FirstViewController alloc] initWithNibName:nil bundle:nil] autorelease] animated:YES]; break; case 1: [self.navigationController pushViewController:[[[SecondViewController alloc] initWithNibName:nil bundle

Dismiss ModalView that was presented by tableViewController? [closed]

谁都会走 提交于 2019-12-25 19:04:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . In my project the app launches in ViewController, which loads inside a table (Table class) by adding it as a subview (ViewController.h - [self.view addSubview: Table.tableView];) Camera Class is the detailed view, so when you tap in a table row it loads Camara.xib. Until here everything works fine. The problem

How to load different view controller class from app delegate at the time of application launch(i.e from app delegate)

跟風遠走 提交于 2019-12-25 18:16:29
问题 I was developing a screen where i want to load view controllers based on the condition.i.e with respect to condition it should load a particular view controller class from app delegate at the time of application launch. if(condition success) { //Load viewcontroller1 } else { //Load viewcontroller2 } How can i achieve this .Please help me out.. 回答1: Just open Xcode, create a new project, make it Universal (iPad/iPhone) and you'll see an example of this. It creates for you two .xib files. One

Having trouble hooking up instance variables to AppDelegate

╄→尐↘猪︶ㄣ 提交于 2019-12-25 14:48:42
问题 Am having some trouble hooking up instance variables in the visual object editor using Xcode4. Have been able to connect the Whereami App Delegate to the mapView and activityIndicator, but for some reason, can't find the locationTitleField. Am also having trouble connecting the delegates back to the App Delegate. What am I doing wrong? Here is the code for Whereami App Delegate.h: #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #import <MapKit/MapKit.h> @interface

Open Xcode 4.3.1 in 32bit mode

别来无恙 提交于 2019-12-25 06:48:41
问题 I noticed after upgrading from 4.2 to 4.3.1 that there is no longer a 32 bit mode option in the Get Info for Xcode. How would I run Xcode 4.3.1 in 32 bit mode now? 回答1: You can't. Xcode is now 64-bit only -- there's no 32-bit code in it anymore. If you had some plugins which were previously 32-bit only, you will need to upgrade them. 回答2: If you run your mac in 32 bit mode (when you start the computeer with "3" and "2" key) you will have your machine and their programs in 32 mode. 来源: https:/

iCloud update policy on CoreData in development and production mode

懵懂的女人 提交于 2019-12-25 05:14:35
问题 as specified in the subject I am developing un application that made use of CoreData and its built in iCloud feature. Whenever I connect my devices (an iPad and an iPhone) to xcode and run the application, I can see after few minutes the log of CoreData updating data. In both devices on iCloud section, I can see my application full entitled for iCloud. First question: how often are iCloud content pushed (or pulled) to devices ? Is there a way to force this ? Second, I noticed that the devices