Attention! You Can Only Post New Topics/Replies In The Forum If You're Have An Active AppstronautMe Membership!

Announcement! Due To New Member Sign Up Spam, We No Longer Accept New Registrations With Yahoo Email!

Need more help? Then submit a support ticket!

Please consider registering
guest

Log In Register Members

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
NATIVE Page Type - How To Use

Neil Appstrong
Admin
Forum Posts: 165
Member Since:
Offline

NATIVE PAGE

 

AppstronautMe 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 ()
@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];
    ;
    ;
}
- (void)viewDidUnload {
    [super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)i​​​​​​​​​​​​​​​​​​​​​nterfaceOrientation {
    return [[SCAppContext sharedContext] shouldAutorotateToInterfaceOrientationGlobal:interfaceOrientation];
}
@end
 

The .h file is generated automatically

 
www.seattleclouds.com
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: 

 
www.seattleclouds.comwww.seattleclouds.com
Forum Timezone: America/New_York

Most Users Ever Online: 17

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

dberry: 18

jettdigitals: 6

Tommyhall: 6

asnorth: 5

richardwing: 5

hmds2007: 4

razma: 4

Ivon: 4

DJ: 3

bushwood: 3

Member Stats:

Guest Posters: 0

Members: 521

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 144

Posts: 249

Newest Members: Melvinvon, permasbear, 4affbync, rosemariedz3, Aidi-inc, lako0, whzkid@comcast.net, Samisusami, daleji16, Abcegfeick

Administrators: Neil Appstrong: 165

support
Need Help?
Skype Chat
Skype Call
Support Ticket
Please Wait
Please Wait