iOS Question Add events

narek adonts

Well-Known Member
Licensed User
Longtime User
Hi ,

Could someone tell how to add a missing event to a view(ex. TextView or tableview) using this code example shared by @Erel .

B4X:
#if OBJC
@end
@implementation B4IAppDelegate (shortcut)
-(void)application:(UIApplication *)application
performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem
completionHandler:(void (^)(BOOL succeeded))completionHandler{
B4I* bi = [b4i_main new].bi;
[bi raiseEvent:nil event:@"application_shortcutitemclicked:" params:@[shortcutItem.type]];
completionHandler(YES);
}
#End If

Narek
 
Top