ich, dass ein tranparent Hintergrund in meinem UIViewController haben wollen benutzte ich Clear wie dieseClear machen Hintergrundfarbe schwarz
colorPickerVc.view.backgroundColor = UIColor.clearColor()
presentViewController(colorPickerVc, animated: true, completion: nil)
das Problem ist, wenn colorPickerVc fertig geladen, die Hintergrundfarbe schwarz werden möchte ich eine Lösung wenn möglich, dass die Arbeit an ios 7 bis danken ist für Ihre Hilfe
Lösung von @ good4pc:
colorPickerVc.view.backgroundColor = UIColor.clearColor()
if #available(iOS 8.0, *)
{
colorPickerVc.modalPresentationStyle = UIModal PresentationStyle.OverCurrentContext
}
else
{
colorPickerVc.modalPresentationStyle = UIModalPresentationStyle.CurrentContext
}
presentViewController(colorPickerVc, animated: true, completion: nil)
Arbeit für mich, ich danke euch für eure Hilfe
Sie müssen einen Screenshot der vorherigen Ansicht Controller hinzufügen und fügen Sie es als Hintergrund in präsentiert – iSashok
Verwenden Sie Storyboard, um Ihre colorPickerVC instanziieren? –
Von einer Feder ja lassen Sie ColorPickerVc = ColorPickerViewContro (nibName: "ColorPickerViewContro", Bündel: Null) – tamtoum1987