UIAppearance setTranslucent error: Illegal property type, c for appearance setter, _installAppearanceSwizzleForSetter

前端 未结 4 440
日久生厌
日久生厌 2021-01-04 04:26

Trying out iOS 7 did:

[[UINavigationBar appearance] setTranslucent:NO];

Got crash and error:

*** Terminating app due to          


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 05:07

    Dont know what about the iOS 7 .But in iOS6, according to the documentation you cannot set the translucent property to the UIAppearance object of the UINavigationBar. Some time it shows the all the possibilities in the autocomplete with unsupported one also

提交回复
热议问题