UIAppearance setTranslucent error: Illegal Eigenschaft Typ c für Aussehen setter, _installAppearanceSwizzleForSetter

Auszuprobieren iOS 7 hast:

[[UINavigationBar appearance] setTranslucent:NO];

Bekam crash-und Fehler:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** Illegal property type, c for appearance setter, _installAppearanceSwizzleForSetter:'
*** First throw call stack:
(0x16ad9b8 0x142e8b6 0x16ad7ab 0x72163d 0x724c34 0x169daca 0x169d8de 0x6c09 0x228ea9 0x2296e9 0x22ab5e 0x240a6c 0x240fd9 0x22c7d5 0x35a4906 0x35a4411 0x16293e5 0x162911b 0x1653b30 0x165310d 0x1652f3b 0x22a2b1 0x22c4eb 0x6f3d 0x1d0d725)
libc++abi.dylib: terminating with uncaught exception of type NSException

Andere Anrufe funktionieren: zB.

[[UINavigationBar appearance] setBarStyle: UIBarStyleBlack];

Wenn ich die Transluzenz lokal, es nicht abstürzt:

[self.navigationController.navigationBar setTranslucent:NO];

Ich ' m vorausgesetzt, dies ist spezifisch für iOS 7, aber noch nicht ausprobiert, dasselbe in iOS 6 noch.

InformationsquelleAutor shim | 2013-07-05
Schreibe einen Kommentar