fortmarek / SwipeViewController

SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers
MIT License
655 stars 46 forks source link

Crash - CGColor not defined for the UIColor #6

Closed gariera closed 8 years ago

gariera commented 8 years ago

Hi, could you see this crash pls? It occurs when it´s instantiated the SwipeViewController. Without adding any page or setting anything as the documentation explains. The only thing I do is inherit my VC from SwipeViewController

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -CGColor not defined for the UIColor <UIPlaceholderColor: 0x7912ebd0>; need to first convert colorspace.'

Thanks !!

fortmarek commented 8 years ago

Try using the setSelectionBar function where you would set the UIColor (it must be in viewDidLoad of your VC).

gariera commented 8 years ago

Thanks ! that fixes the crash I mentioned. Anyway it has some other bugs (At least for me), I would suggest to make a revision of this pod.

Many thanks for sharing it.

Best,

fortmarek commented 8 years ago

I'll keep improving it, I'm aware it's not perfect.