path: root/src/plugins
diff options
authorRichard Moe Gustavsen <>2016-09-06 11:00:21 +0200
committerRichard Moe Gustavsen <>2016-09-19 11:20:50 +0000
commite32ecdb28079a60f86aca0eee648c11f7993b460 (patch)
treefa3aeaa2898bf319f3223e47b13ab2b7adb68c63 /src/plugins
parentd3389a6d460a7d51a9672247366c60504f427b29 (diff)
iOS: explicit synthesize properties as readwrite
The synthesized properties were defined as (read only) methods in the UIViewController API in iOS9, and we extended them into readwrite properties in our own sub class to enable some local bookkeeping in addition to normal overriding. But in iOS10, Apple has changed the methods into being readonly properties instead. The difference then is that automatic property synthesizing will ignore our local readwrite declarations, and use the declarations in the super class instead. And this will lead to a runtime crash on iOS10 since no setter methods are generated. This patch will instead explicit synthesize the affected properties to ensure that both getters and setters will be generated. Change-Id: Iac330e991b8a0fe335e383e1f7d9ff30c0ce1559 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/ b/src/plugins/platforms/ios/
index ed76161b87..a4460a6737 100644
--- a/src/plugins/platforms/ios/
+++ b/src/plugins/platforms/ios/
@@ -222,6 +222,10 @@
@implementation QIOSViewController
+@synthesize prefersStatusBarHidden;
+@synthesize preferredStatusBarUpdateAnimation;
+@synthesize preferredStatusBarStyle;
- (id)initWithQIOSScreen:(QIOSScreen *)screen
if (self = [self init]) {