forked from organicmaps/organicmaps
[crash-fix] [ios] Crash fix.
https://fabric.io/mapsme/ios/apps/com.mapswithme.full/issues/58cbeab30aeb16625b81317b
This commit is contained in:
parent
2ecff49a9a
commit
f27548b6f1
1 changed files with 10 additions and 1 deletions
|
@ -476,7 +476,8 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
|
|||
|
||||
- (void)update
|
||||
{
|
||||
[self.placePageView.tableView refresh];
|
||||
if (self.data)
|
||||
[self.placePageView.tableView refresh];
|
||||
}
|
||||
|
||||
#pragma mark - MWMPlacePageViewUpdateProtocol
|
||||
|
@ -493,4 +494,12 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
|
|||
[self.layoutImpl onUpdatePlacePageWithHeight:self.placePageView.tableView.contentSize.height];
|
||||
}
|
||||
|
||||
#pragma mark - Properties
|
||||
|
||||
- (void)setData:(MWMPlacePageData *)data
|
||||
{
|
||||
[NSObject cancelPreviousPerformRequestsWithTarget:self];
|
||||
_data = data;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue