TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

TSMessage showing translucent black

Open gtranchedone opened this issue 11 years ago • 4 comments

I'm running my app on iOS 8 and when I call this it the notification shows like in the image attached:

[TSMessage showNotificationInViewController:viewController title:title // not nil subtitle:message // not nil image:nil type:type // message type duration:TSMessageNotificationDurationEndless callback:nil buttonTitle:nil buttonCallback:nil atPosition:TSMessageNotificationPositionTop canBeDismissedByUser:NO];

screen shot 2014-10-07 at 16 22 22

The weird thing is that the Example project seems to work fine on iOS 8. Any idea?

gtranchedone avatar Oct 07 '14 15:10 gtranchedone

Can you check your .app folder if it contains the TSMessages bundle with the containing this file: https://github.com/toursprung/TSMessages/blob/master/Pod/Assets/TSMessagesDefaultDesign.json

Can you set a breakpoint at https://github.com/toursprung/TSMessages/blob/master/Pod/Classes/TSMessageView.m#L76 and see if the values are set correctly or if it is nil.

KrauseFx avatar Oct 08 '14 12:10 KrauseFx

The design JSON is correctly loaded. However, it looks like the problem is with HexColor. I've changed the methods with those of my library, GTFoundation ([UIColor GT_colorWithHexString:]) and everything works fine.

gtranchedone avatar Oct 08 '14 19:10 gtranchedone

Can you try the latest version on master? I refactored some things, it should work better now.

KrauseFx avatar Nov 03 '14 13:11 KrauseFx

Still not working. It seems that HexColors is conflicting with some other Pod I have installed as it's methods are not namespaced. The only think that changed in 0.9.11 is that the bar is not translucent anymore. it's just plain black.

gtranchedone avatar Nov 17 '14 10:11 gtranchedone