Jump to content

4 posts in this topic

Recommended Posts

Posted (edited)

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines