Hi,
I noticed an issue in this code:
if(!b_outline)
{
[self.navigationController.navigationBar setTranslucent:defaultTranslucent];
if (_delegate) {
[_delegate willCloseReader];
}
//[m_ThumbView vClose] should before [m_view vClose]
[m_Thumbview vClose];
[m_Gridview vClose];
[m_view vClose];
m_slider = nil;
}
And this:
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
if(!b_outline)
{
if (_delegate) {
[_delegate didCloseReader];
}
}
}
In the following case b_outline is true:
1. Open form
2. Click on free space of the form. Toolbar with Close button will be closed
3. Click again on free space of the form. Toolbar with Close button will be opened
4. At this moment b_outline is true
5. Click Close button
6. viewWillDisappear will be invoked. But because b_outline is true willCloseReader delegate will be not invoked
7. The same for viewDidDisappear. Because b_outline is true didCloseReader delegate will be not invoked
Could you check this issue? We are using didCloseReader to notifiy js side that pdf editor was closed.