app won't run in iPhone simulator
app won't run in iPhone simulator
- Subject: app won't run in iPhone simulator
- From: Jay Swartzfeger <email@hidden>
- Date: Wed, 14 Oct 2009 07:59:30 -0400
All, I'm new to xcode and a simple iPhone app will launch but then
immediately quits to the home screen. Do you see anything here I'm
doing wrong?
// MainView.h
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface MainView : UIView {
IBOutlet UIWebView *webView;
}
@end
// MainView.m
//
#import "MainView.h"
@implementation MainView
-(void)awakeFromNib {
//[webView loadRequest:[NSURLRequest requestWithURL:[NSURL
URLWithString:@"http://www.apple.com"]]];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL
fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index"
ofType:@"html"]isDirectory:NO]]];
}
@end
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden