IBM Worklight v5.0.5 > Develop IBM Worklight applications > Development guidelines for mobile environments > Web and native code in iPhone, iPad, and Android

Receive data from the web view in an Objective-C page


The native page must be implemented as an Objective-C class that inherits from UIViewController. This UIViewController class must be able to initialize through the init method alone. The initWithNibName:bundle: method is never called on this class instance.

Write a UIViewController class that implements the method setDataFromWebView...

-(void) setDataFromWebView:(NSDictionary *)data
{
    NSString  = (NSString *) [data valueForKey:@"key"];
}


Parent Web and native code in iPhone, iPad, and Android


Related information:

UIViewController Class Reference





+

Search Tips   |   Advanced Search