Skip to content
Guest Big Announcement

add visit url in sclalertview ??

Featured Replies

cxgcEBx.png

 

help me add code Visit Url in SCLAlertview ! i'm add code not working :(

 

%hook AppDelegate

- (void)applicationDidBecomeActive:(id)application { // Popup only once at each launch of the app.


    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];

        [alert addButton: @"Visit" actionBlock: ^(void) {
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://fb.com"]];  
    }];



    [alert showSuccess: @"Title"
            subTitle:@"example"
    closeButtonTitle: @"Thanks" // The text on the button which closes the popup
    duration: 0.0f]; // Seconds until the popup auto closes.
            return;





}



%end

 

Updated by vinhthai222006

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.