oseparovic / MessageComposerView

Custom UIView that sticks to the keyboard like in iMessage
MIT License
100 stars 27 forks source link

UI changes #13

Closed danmunoz closed 7 years ago

danmunoz commented 9 years ago

Added methods for customizing the looks of the view

oseparovic commented 9 years ago

The three functions you added are nice but a little redundant. Both the messageTextView and the sendButton are exposed properties so don't require helper methods to alter. E.g. you can just directly do:

    [self.messageComposerView.sendButton setTitle:@"" forState:UIControlStateNormal];
    [self.messageComposerView.messageTextView setBackgroundColor:[UIColor whiteColor]];
    [self.messageComposerView setBackgroundColor:[UIColor whiteColor]];

As for your alterations to - (CGSize)currentScreenSizeInInterfaceOrientation:(UIInterfaceOrientation)orient I've been struggling to find a good way to determine screensize with orientation. Tabbars are a known issue but you can always use a keyboardOffset initializer with tabbar height provided to work around it - (id)initWithFrame:(CGRect)frame andKeyboardOffset:(NSInteger)offset;

Have you tested your changes on non-tab bar views?