I'm coding a simple game using SFML in Xcode. I have a .png of a block I want to use in a sprite. At the moment, I have to type the full path to the image in the code snippet below:
sf::Image blockImage;
if (!blockImage.LoadFromFile("/Users/me/Development/Tetris/images/block.png")) {
cerr << "Could not load block image." << endl;
...
It is supposed to be possible to install XCode + SDK on a PowerPC.
How easy is this? Can it be done with the latest version (3.2.2).
If not, which versions?
(I think the latest XCode needs an OS version that doesn't run on PowerPC)
...
Hello
I would like to get tap to focus in my app and the controls are hidden
Supposedly this is impossible but I know its not. I have a simple iAD dragged into an overlay, no code or anything. When I click on the iAD nothing. but when I close it with the home button I get a modal exit of the nonexistant iAD and the camera apps relaunch...
I have two targets in my iPhone application: one for my actual app, and another for my unit testing. I added a run script to my main application's target so that when I compile, the script will generate Doxygen documentation. The problem is that the script runs when I am compiling and running my unit testing target. Is there a way to mak...
I am searching for a glow effect in quartz 2d for the iphone. I tried making lines with different alpha values to simulate glow but it didn't work...
Can anyone help me with that ??
p.s.
I'm making an app where the user can draw with glow. I have the basic lines, but no glow :(
...
This is a weird question inasmuch as I've definitely had projects that work fine, possibly because I've been doing something differently. But now I'm confounded.
I create a new View-based iPad app with Xcode (3.2.3 fwiw). This gets me a default view controller with a default view which gets unarchived and displayed at startup.
When I ...
When the debugger is stopped at a breakpoint, I can't find the frame of any of my UIViews in there.
Is it possible to do this?
EDIT: starting a bounty due to the lack of response. Just to be clear, what I am looking for is a way to see the frame without adding in extra debugging code.
Also, if the answer is "no you can't do it", boun...
Hi, I'm new to Xcode. I have the following code working perfectly to read a text file located in the project bundle.
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"];
NSString *textFromFile = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
My question is how to re...
Hi everybody.
I'm going crazy with this my little app... Please help me!!!
this is the source code of the app: Smoking.zip
It only saves a .dat file with an NSMutableArray.
Now, the first time you will launch the app, try to click the cigarette button sometimes: Everything should working fine.
Ok, now close the app, re-open it, and cl...
I have class called AppController which contains a mutable array of Person objects called people. Each person simply has an NSString and a float.
I also have an NSArrayController whose contentArray is bound to the people array in AppController. Then I have the usual setup of a table view bound to the array controller to show a list of ...
Hi everybody.
I'm going crazy with this my little app... Please help me!!!
this is the source code of the app: Smoking.zip
It only saves a .dat file with an NSMutableArray.
Now, the first time you will launch the app, try to click the cigarette button sometimes: Everything should working fine.
Ok, now close the app, re-open it, and cl...
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"Dog*"];
Is there a way for me to "walk" through a list of all the userDefault values in my iPhone app, and only delete certain ones?
I.E. All the keyNames that start with a certain word.
...
Bundle Name, Executable Name, Product Name... any more??
can someone please help clarify the use of each of these in Xcode on an iPhone project? They never fail to confuse the living bajezus out of me...and Im tired of getting them wrong.
Someone please explain... why the hell do we need this many different naming schemes for one app ...
I am trying write a simple image uploader using ASIHTTPRequest...
but at the code below....
[request setData:imageData withFileName:@"iphone.jpg" andContentType:@"image/jpeg" forKey:@"photo"];
I get below warning msg....
warning: 'ASIHTTPRequest' may not respond to '-setData:withFileName:andContentType:forKey:'
not too sure whats ...
I am trying to upload my first iOS app to iTunes Connect, but I am unable to do this because every time I try to upload it, I receive the following error from Application Loader:
The binary you uploaded was invalid.
The signature was invalid, or it was
not signed with an Apple submission
certificate
I have followed the instru...
I'm getting the following error when including static libraries:
missing required architecture i386 in
file
This worked 30 seconds previously, and only failed when I upgraded to Xcode 3.2.3. I've used "file" command to check - and, yes, XCode is building completely the wrong architecture (armv6 + armv7 instead of i386).
This se...
Hi everybody,
Before jailbreaking my iPhone with jailbreakme I would like to be sure that it will not be an issue to run on my iPhone the applications I develop with xcode. Will it be an issue for the development profiles installed on my iPhone ? Etc...
Thanks a lot.
...
In interface builder for xcode 3.2 NSWindow had property content border to set something like a 'footer' for the app, does anyone know where is it in xcode 4 interface builder?
Thanks for help.
...
Hello,
I am new to iphone game development so apologies if I ask something stupid. =(
What I'm trying to do is to use libpng in my opengl project to load sprites using xcode.
I've downloaded the package of libpng from internet and added its source to my project but when I try to build, it gives this error:
"Command Developer/Platform...
Im using alot of timers in my application. For recording time, moving object, fading etc. I use the same timer for several puposes in the same view at different times. How should I declare and invalidate or release my timers properly?
Atm Im declaring the timers like this:
fadeTimer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:...