diff --git a/TWSReleaseNotesView/TWSReleaseNotesView.h b/TWSReleaseNotesView/TWSReleaseNotesView.h index 856aaa9..984f1f2 100644 --- a/TWSReleaseNotesView/TWSReleaseNotesView.h +++ b/TWSReleaseNotesView/TWSReleaseNotesView.h @@ -132,4 +132,11 @@ */ - (void)showInView:(UIView *)containerView; +/** + Shows the release notes view in the specified container view. + @param containerView The container view in which the release notes view must be shown. + @param releaseNotesText The release notes text. + */ +- (void)showInView:(UIView *)containerView releaseNotesText:(NSString *)releaseNotesText; + @end diff --git a/TWSReleaseNotesView/TWSReleaseNotesView.m b/TWSReleaseNotesView/TWSReleaseNotesView.m index 1567145..0b7eebb 100644 --- a/TWSReleaseNotesView/TWSReleaseNotesView.m +++ b/TWSReleaseNotesView/TWSReleaseNotesView.m @@ -509,4 +509,11 @@ - (void)showInView:(UIView *)containerView }]; } +- (void)showInView:(UIView *)containerView releaseNotesText:(NSString *)releaseNotesText +{ + _releaseNotesText = [releaseNotesText copy]; + [_textView setText:_releaseNotesText]; + [self showInView:containerView]; +} + @end