Discuss [Dev] Hello World app advice at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Hi all, I am absolutely new to the iphone and objective C programming. I just ...
[Dev] Hello World app advice
Hi all, I am absolutely new to the iphone and objective C programming. I just downloaded winchain, cygwin and others to develop on my PC. I searched a bit on some samples but none of them are working. Some say the UIScreen (or other UI elements) is not found, while the best one successfully compiled, but don't create the window, just stayed in the default.png thing, and quits back to springboard after sometime.
These are the source code of that sample app (SampleApp.m)
P.S. solved. thanks, it seems that i didn't chmod it to 755, so it can't run on my 1.1.4
- (void) applicationDidFinishLaunching: (id) unused
struct CGRect rect = [UIHardware fullScreenApplicationContentRect];
rect.origin.x = rect.origin.y = 0.0f;
window = [[UIWindow alloc] initWithContentRect: rect];
mainView = [[UIView alloc] initWithFrame: rect];
textView = [[UITextView alloc]
initWithFrame: CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)];
[window orderFront: self];
[window makeKey: self];
[window _setHidden: NO];
[window setContentView: mainView];
[textView setText:@"Hello World"];
Last edited by onlyC; 03-23-2008 at 02:19 PM.
By watsonnicole1 in forum iPhone 3G
Last Post: 09-11-2009, 12:23 PM
By arhemed in forum General
Last Post: 07-29-2007, 11:38 PM