In our iPhone project, it tends to add up a pile of unused image files. I would like to find a neat way to delete theese files from my xcode project. Referances to the images is found in both source and nib-files Do anyone have a solution for that?
...
-(IBAction)startGameButtonClicked:(id)sender{
//gameViewController = NULL;
//[gameViewController release];
//[gameViewController dealloc];
if(!gameViewController){
gameViewController = [[GameViewController alloc] initWithNibName:@"GameViewController" bundle:nil];
}
appDelegate.ScoreID=0;
[gameViewCo...
I installed Xcode 3.2.1 with the latest iPhone SDK, but the developer documentation for certain classes says it is "preliminary" and was last updated in early 2009. I know that it's not "preliminary" and Apple online developer docs confirm it. I went to Preferences > Documentation and noticed that the iPhone 3.1 Library item has greyed o...
The Situation:
I have a UIViewController that is governed by a navigation controller. I am able to set the title of the navigation bar covering the UIViewController by simply calling self.title = @"title". But, I want to be able to set the back button text of the navigation bar, too (for different languages n' such..)
The Problem:
I don...
Hello ! every one.
I have a little query regarding the memory management.
Let's begin with an example. Assume we have a class as follows.
@interface myClass : NSObject {
NSString *xyz;
}
@end
Now, see the implementation.
@interface myClass : NSObject {
NSString *xyz;
}
@end
@implementation myClass
-(void)abc{
// xyz a...
Is it possible that there will still be leaks when running my app on an iPhone even if the simulator has absolutely none??
...
In iTunes connect, you can submit Spanish and Mexican Spanish localizations. I'm using the "spa" locale for Spain (Spanish), but "spm" doesn't work for Mexico in the simulator.
Ideally I think I'd like to use a locale code that would work for all latin american countries Spanish, as I think they prefer the Mexican variant.
What is the ...
How much real memory should my iphone app be using? What's going too high?
...
I'm creating an object with:
NSMenu *appMainMenu = [[NSMenu alloc] initWithTitle:@"MyApp"];
(Ignore the fact I'm creating this menu programmatically and not using a Nib File. I understand the disadvantages of doing so)
The menu appears correctly in the menubar.
However, when I try to call any instance method such as:
[appMainMenu...
Oh my god!!! Getting Xcode to work is turning out to be one of the most challenging things of my life so far!
Please answer this one question:
I downloaded the SDK before getting my certificate and I have created some practice apps following along with the iTunes University. I thought you could do all this without a certificate, but I...
There's this XML file for an RSS feed which has a body:
<description>
<div>
<img width=120 src='http://enjoythebest.ph/photos/news/150/57_1_100204125514.jpg&#039;>
</div>
<![CDATA[Hey come to Manor tomorrow night yo! featuring performances by BEATPHONIK X ADDLIB with KABAYAN KRUMP MOVEMENT an...
I m creating an app that has to display CFUserNotificationDisplayAlert even if iPhone Screen is Locked, currently i am using this code
CFOptionFlags responseFlags = 0;
CFUserNotificationDisplayAlert(20.0, 3, NULL, NULL, NULL, CFSTR("Hello"), CFSTR("Hello World"), CFSTR("OK"), NULL, NULL, &responseFlags);
This works great on Home Scree...
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);<-----This line gets highlighted as the leak
[pool release];
return retVal;
}
It leaks right when I start the app.
...
Hello,
I added another XCode Project file into my repository using "svn add"
But the problem is that when I want to check out the repository the added .xcodeproj package is empty and I get an error from XCode - cannot find .pbxproj file.
I'm sure that I don't have "*.pbxproj" set in my global igonres.
Why doesn't SVN add files includ...
I am having a heck of a time trying to get this to work. At this point, I am only trying to create little test apps in xcode and "build and run" them on xcode-not on my phone.
I have a provisioning profile for my phone in the xcode organizer, but that is the only one I have.
Do I also need a separate provisioning profile for the des...
Hello,
I am trying to compile a static library on OSX 10.5 that links to a library that includes . The error message I'm getting is confusing because the conflicting type apparently conflicts with itself.
Compiler message:
In file included from /usr/local/include/jasper/jas_math.h:79,
from /usr/local/include/jasper.h...
-(IBAction)customizeYourGameButtonClicked:(id)sender {
[self playHumanHitSound];
self.customizeYourGameViewController = [[CustomizeYourGameViewController alloc]
initWithNibName:@"CustomizeYourGameViewController" bundle:nil];
[self.navigationController
pushViewController:customizeYourGameViewController animated:YES];
[custo...
Greetings,
I have been working a project in XCode for a while. I have been using xcode snapshots as a rudimentary version control. However, I have decided that it's about time I moved up into a real SCM system, so I plan to create a repository and import my project into SVN.
My question is: Is there anyway to import my snapshots hi...
The Situation
In my app, I am currently downloading an mp3 file (to docs directory) using [NSData dataWithContentsOfURL:URL], a method that works fine, but ties down the CPU, dissallowing screen updates of download status. So, I want to download using a different method so that I can update the screen WHILE downloading to alert the user ...
I have looked for several hours for a good tutorial on how to store data for my command line program that I am writing in Objective-C. It seems like my options are NSUserDefaults, Plists, sqlite, or XML.
Now, I think at most I'd have 50kb of data to store, retrieve, and modify, so it seems like from what I read Plists would work just f...