NATIVE PAGE
brick&mobile developers designed a new page type "Native".
Now, you can implement your own native page and integrate it in your app.
(Programming skills required!!!)
1. Create a new page.
2.Paste your code in .m file and save changes.
Code example.
The .h file is generated automatically
You will need to create a link to the "Native" page.
**NOTE: In order to preview the Native code you have added in your app you should request an AD HOC Build. You're not able to preview the Native Page type on our Previewer apps or Web Simulator.
Result:
#import "native1ViewController.h"
#import "SCAppContext.h"
@interface native1ViewController ()
@end
@implementation native1ViewController
- (id)init {
self = [super init];
if (self) {
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
}
- (void)viewDidAppear:(BOOL)animated {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" message:@"Hello World!" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles: nil];
[alert show];
[alert release];
}
- (void)viewDidUnload {
[super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return [[SCAppContext sharedContext] shouldAutorotateToInterfaceOrientationGlobal:interfaceOrientation];
}
@end
You will need to create a link to the "Native" page.
**NOTE: In order to preview the Native code you have added in your app you should request an AD HOC Build. You're not able to preview the Native Page type on our Previewer apps or Web Simulator.
Comments
0 comments
Article is closed for comments.