Skip to content

Commit 58918a8

Browse files
committed
Fix iOS 4.3 crash
yup, we are stil supporting this :(
1 parent 2b3ff82 commit 58918a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ViewDeck/IIViewDeckController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,9 @@ - (void)centerViewHidden {
21642164
self.centerTapper.frame = [self.centerView bounds];
21652165
[self.centerTapper addTarget:self action:@selector(centerTapped) forControlEvents:UIControlEventTouchUpInside];
21662166
self.centerTapper.backgroundColor = [UIColor clearColor];
2167-
self.centerTapper.accessibilityViewIsModal = YES;
2167+
if ([self.centerTapper respondsToSelector:@selector(accessibilityViewIsModal)]) {
2168+
self.centerTapper.accessibilityViewIsModal = YES;
2169+
}
21682170
}
21692171
[self.centerView addSubview:self.centerTapper];
21702172
self.centerTapper.frame = [self.centerView bounds];

0 commit comments

Comments
 (0)