xcode

iOS4, XCode linking problems

I'm having problems using the QuartzCore framework. Here's the code that's trying to run: #import <QuartzCore/QuartzCore.h> CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromLeft]; [animation setTimingFunction:[CAMediaTimingFunc...

iPhone SDK - Asynchronous Download Methods

Hello everyone, In Erica Sadun's Download Helper, link here, I can put these methods into my classes: - (void) didReceiveData: (NSData *) theData; - (void) didReceiveFilename: (NSString *) aName; - (void) dataDownloadFailed: (NSString *) reason; - (void) dataDownloadAtPercent: (NSNumber *) aPercent; these methods obviously refer back...

UILabel nameLabel.text = "test1"; not working and the outlet is connected.

Hi guys I used the code to try set the label text but its not working. I though maybe I forgot to connect the outlet with the label, or i connected the wrong outlet but they were ok once I checked them. Made sure the xib was saved. .m @synthesize nameLabel; @synthesize infoLabel; -(void) updateUI { nameLabel.text = @"test1"; infoLabe...

Scaling custom draw code for different iOS resolutions

I am struggling to get my custom drawing code to render at the proper scale for all iOS devices, i.e., older iPhones, those with retina displays and the iPad. I have a subclass of UIView that has a custom class that displays a vector graphic. It has a scale property that I can set. I do the scaling in initWithCoder when the UIView loa...

How do I remove a build configuration from an Xcode project from a script?

I'm currently using AppleScript to clean up an Xcode project. I'd like my script to remove some build configurations that won't be relevant to other developers on my team. For example, if I have "Debug", "DebugTest", and "Release", I would like the script to remove "DebugTest". I'm currently using the following script: tell applicatio...

XCode's "Add to Repository" not appearing

I started a new project with XCode and I have set up the subversion repository. For some weird reason, in this project the "Add to repository" menu items are not working, both in the main menu and by right clicking a file. If the file is in the repository I can do all the usual things. Newly added files do not show with a question mark e...

1347 errors in iOS SDK 4.1

Hi, I had tried to build my iPhone app and got 1347 errors! What did I do wrong? You can download a txt file with my errors here: http://www.mediafire.com/?jlabh2ms21z6r24 Sorry, I had to upload a file, because of limited characters... Did any one else had the same problem and can help me? esanits ...

Upgrade the version sqlite3 used by xcode?

I wish to use the foreign keys facility, and thus upgraded my version of sqlite to the latest stable version 3.7.2. I've verified the version in terminal by entering in: > whereis sqlite3 = /usr/bin/sqlite3 > sqlite3 --version = 3.7.2 Now, when I come to create a new database using FireFox's SQL Manager plugin it reports it is using...

How to handle views?

Hi How can I handle different views in XCode? Let's say I want to show a different view when the user press a button. UIViewController *viewSettings; [viewSettings initWithNibName:(NSString *)@"SettingsViewController" bundle:(NSBundle *)nil]; This code don't work. The app crashes. I have updated my XCode to the new version. How can I ...

Cydia App quits right after launch, signing with ldid did not work.

Here's the deal, I had this app working since iPhone OS 3.0 came out, now I made some changes to take advantage of iOS4.x, and compiled against 4.0 with xcode 3.2.3, I have 4 jailbroken devices: 2 iPod touch 2G iOS 3.0 1 iPad iOS 3.2 1 iPhone 4G iOS 4.0 When I run & debug from xcode (with an Apple provisioning certificate) the app w...

Including files inside the iPhone Bundle Library Path

I'm having trouble with my update logic. I need to include a file in the app bundle which contains specific update data. When the app discovers this file, it checks to see if it's a first install (no update needed) or a previous install (apply update). Whatever the outcome, the update file needs to be deleted, so it's not found again,...

Is possible make a .xcodeproj file and how?

Hello everyone, is possible make a .xcodeproj file and how? I'd like to make a Mac software which have to build a .xcodeproj file. ...

XCODE - Drumming app - Laggy Sounds... How To Fix?

Hey everybody, I have a drum app that I've created basing it off of AVAudioPlayer instead of the common system sounds in order to have a bit of control. The problem is that whenever 2/more sounds are played at once, it lags and stops alls sounds, so your drum beat gets choppy and randomly stopped. like boom boom chhhhh boom boom ch--- ...

Restart iPhone after installing or upgrading an app

What's the logic behind it? Ive been told by multiple apps to do this. I've also noticed that if I reinstall/build the app too many times from xcode, it will become unstable and more likely to crash. A restart does fix the problems. ...

display loading

Hey there, I'd like to display a UIActivityView in a rounded transparent box with text, just like the one shown below. Does anyone know how to do this? p.s. I'd rather not be putting it in an UIAlertView, but I don't know how to do it any other way. Thanks! Tristan ...

iPhone + OSX targets on the same project

I created a project with two targets, one for iPhone and another for Mac OsX. They both build and run well when I build them the first time (I built the OsX target first then iPhone target next). However, if I build the iPhone target and switch back to OsX target, the OsX target now thinks that it uses the iPhone SDK rather than it's ow...

Replacing lib with newer one causes symbols to be missing.

Hi, I'm using mobclix lib in an iPhone app, I tried to replace the old lib with a newer one, the old lib contained a class named MobclixAdViewiPhone_300x50, but it has been deprecated and replaced with MobclixAdViewiPhone_320x50, I changed my code to match the library changes, and removed the old library and its headers and added the new...

Objective-C++ and .cpp files in Xcode

Hello, I'm trying to make a simple Objective-C++ applicaiton. All of my code is compiling fine, including the use of C++ in Objective-C classes, until I try and add a C++ class to the mix. I've created a simple C++ class: Test.h class Test { }; and included this file in a Objective-C class (with a .mm extension) and I get the fol...

performance of iOS apps when compiling in debug or release / distribution mode

What are some performance differences when compiling your code in these mode? debug release / distribution are the default settings optimized for app store (distribution)? what are some ways to optimize performance even more by tweaking the settings? ...

Specify asset directory throughout app with multiple targets

Hi there, So, I have an application that has 2 targets. Each of these targets specifies a very different set of assets which populate that target's application. The idea here is that each target will build an application with completely different content, but the same core functionality. I have a reference folder for each target that h...