Jump to content

3 posts in this topic

Recommended Posts

Posted

I Have Simple Application , But How To Run Full Screen 

This Is My File codes

RootViewController.mm

#import "RootViewController.h"

@implementation RootViewController
- (void)viewDidLoad{

[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame];

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://mysite.com"]]];

[self.view addSubview:webView];
}
@[member=end]

RootViewController.h

#import "AppViewController.h"
#import "AppDelegate.h"
@interface RootViewController: UIViewController {
}
@[member=end]

myappApplication.mm

#import "RootViewController.h"

@interface myappApplication: UIApplication <UIApplicationDelegate> {
	UIWindow *_window;
	RootViewController *_viewController;
}
@property (nonatomic, retain) UIWindow *window;
@[member=end]

@implementation myappApplication
@synthesize window = _window;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
	_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	_viewController = [[RootViewController alloc] init];
	[_window addSubview:_viewController.view];
	[_window makeKeyAndVisible];
}

- (void)dealloc {
	[_viewController release];
	[_window release];
	[super dealloc];
}
@[member=end]

// vim:ft=objc

Make.m

int main(int argc, char **argv) {
	NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
	int ret = UIApplicationMain(argc, argv, @"iPerisToolAppApplication", @"iPerisToolAppApplication");
	[p drain];
	return ret;
}

// vim:ft=objc

 Device Is iPhone 6S Plus

 

Thanks For Help

Posted

I Have Simple Application , But How To Run Full Screen 

This Is My File codes

RootViewController.mm

#import "RootViewController.h"

@implementation RootViewController
- (void)viewDidLoad{

[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame];

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://mysite.com"]]];

[self.view addSubview:webView];
}
@[member='end']

RootViewController.h

#import "AppViewController.h"
#import "AppDelegate.h"
@interface RootViewController: UIViewController {
}
@[member='end']

myappApplication.mm

#import "RootViewController.h"

@interface myappApplication: UIApplication <UIApplicationDelegate> {
	UIWindow *_window;
	RootViewController *_viewController;
}
@property (nonatomic, retain) UIWindow *window;
@[member='end']

@implementation myappApplication
@synthesize window = _window;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
	_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	_viewController = [[RootViewController alloc] init];
	[_window addSubview:_viewController.view];
	[_window makeKeyAndVisible];
}

- (void)dealloc {
	[_viewController release];
	[_window release];
	[super dealloc];
}
@[member='end']

// vim:ft=objc

Make.m

int main(int argc, char **argv) {
	NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
	int ret = UIApplicationMain(argc, argv, @"iPerisToolAppApplication", @"iPerisToolAppApplication");
	[p drain];
	return ret;
}

// vim:ft=objc

 Device Is iPhone 6S Plus

 

Thanks For Help

Are you making your own application? Sort of confused. :c

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines