Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new method -showInView:releaseNotesText: . #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katsuyoshi
Copy link

  • setupViewWithAppIdentifier:releaseNotesTitle:closeButtonTitle:completionBlock: reported releaseNotesText.
    I want to modify releaseNotesText and show it.

    [TWSReleaseNotesView setupViewWithAppIdentifier:@"XXXXXXXXX" releaseNotesTitle:[NSString stringWithFormat:@"What's new in version %@:", currentAppVersion] closeButtonTitle:@"Close" completionBlock:^(TWSReleaseNotesView *releaseNotesView, NSString *releaseNotesText, NSError *error){
        if (error)
        {
            // Handle errors
            NSLog(@"An error occurred: %@", [error localizedDescription]);
        }
        else
        {
            // Create and show release notes view
            NSString *modifiedReleaseNotesText = [NSString stringWithFormat:@"%@\n\nTo see any version information, please visit iTunes site", releaseNotesText];
            [releaseNotesView showInView:self.view releaseNotesText:modifiedReleaseNotesText];
        }
    }];
    

- setupViewWithAppIdentifier:releaseNotesTitle:closeButtonTitle:completionBlock: reported releaseNotesText.
I want to modify releaseNotesText and show it.

        [TWSReleaseNotesView setupViewWithAppIdentifier:@"XXXXXXXXX" releaseNotesTitle:[NSString stringWithFormat:@"What's new in version %@:", currentAppVersion] closeButtonTitle:@"Close" completionBlock:^(TWSReleaseNotesView *releaseNotesView, NSString *releaseNotesText, NSError *error){
            if (error)
            {
                // Handle errors
                NSLog(@"An error occurred: %@", [error localizedDescription]);
            }
            else
            {
                // Create and show release notes view
                NSString *modifiedReleaseNotesText = [NSString stringWithFormat:@"%@\n\nTo see any version information, please visit iTunes site", releaseNotesText];
                [releaseNotesView showInView:self.view releaseNotesText:modifiedReleaseNotesText];
            }
        }];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant