NATIVE Page Type - How To Use    
This topic is assigned to Victor Robu

Jul 05, 2012 11:00 AM
 SeattleClouds 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.

#import "native1ViewController.h"
#import "SCAppContext.h"
@interface native1ViewController ()
@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)i​​​​​​​​​​​​​​​​​​​​​nterfaceOrientation {
    return [[SCAppContext sharedContext] shouldAutorotateToInterfaceOrientationGlobal:interfaceOrientation];

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.


Oct 12, 2012 09:33 AM
Hi Does this native page mean I could hire someone to do a highly customized game or other internal database function  in objective c, while retaining control over the other aspects of the Apps content?

Oct 12, 2012 12:23 PM
Hi Dan,

Feel free to do that. Creating and designing a Native Page does not affect the other Page Types or features that are already included in the App.

best regards,

Nov 06, 2012 04:53 PM
hi, dan.
this app doesn't support android native code.
i want use android phonegap's plugin (native) code.

Jan 12, 2014 05:26 AM
it is possible to read a wordpress database whit this page

and what is the code?
@Mario - For simplicity, if your not concerned with the database reader files not residing on the phone i.e. with no internet connection then the connection to your database fails. (but this method would allow you to also not have multiple databases to deal with). You can use a Iframe tag to call upon a php file on your server that reads then pulls the needed info to your database.

Mar 28, 2014 06:31 AM
I would love to know as well - both the android but certainly also about the WordPress database...