The change has the following title: [Bug Fix] [iOS][阅读流] 本地书和上下模式 阅读流广告标题文案修改不生效 Do not…
- User
The change has the following title: [Bug Fix] [iOS][阅读流] 本地书和上下模式 阅读流广告标题文案修改不生效
Do not provide feedback yet. I will follow-up with a description of the change in a new message
File Path: TTReading/TTReading/DevPod/SSBizAd/SSBizAd/Classes/Interface/SSBizAdProtocol.h Diff:
143: 144: - (BOOL)isAdBaseViewController:(nullable UIViewController *)vc; 145: - (BOOL)isReadingAdContentViewController:(nullable UIViewController *)vc; 146:+++- (NSString *)getAdTopTitleWithVC:(UIViewController *)vc; 147: - (SSReadingAdCoinTipView *)getCoinViewWithVC:(UIViewController *)vc; 148: - (Class <TTHTTPRequestSerializerProtocol>)getJsonRequestSerializerClass; 149: - (BOOL)isAdSplashCSJViewControllerClass:(Class)cls;
A description was given to help you assist in understand why these changes were made What does this MR done:
- Fixed an issue with the advertisement title not updating in the reading flow for local books and the vertical/horizontal mode.
- Added a new method to determine if the standard title should be enabled.
- Created a new method to retrieve the ad's top title from a view controller.
- Updated the logic for setting the title in the ad content view controller.
- Modified the logic for updating chapter titles in the reading ad content model.
Which functions are involved and why:
refreshTopView:withPageContext:bookId:- This function is likely responsible for refreshing the top view of the reader interface, which includes updating the title based on the context.enableStandardTitle- This newly added function determines whether the standard title should be enabled for the ad configuration.getAdTopTitleWithVC:- This new method is likely used to retrieve the top title for the ad from the view controller.topViewTitle- This method is added to the ad content view controller to provide the title for the top view.nextChapterTitleTextandcurrentChapterTitleText- These methods are part of the reading ad content model and are updated to handle the logic for setting chapter titles.
What's the purpose of this MR:
- To resolve a bug that prevented the advertisement title from updating correctly in the reading flow for local books and in different screen modes.
- To provide a configuration option to enable or disable the use of a standard title for ads.
- To facilitate the retrieval of the ad's top title from a view controller for display purposes.
- To ensure that the title in the ad content view controller is set correctly based on the advertisement configuration.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.