Closed danmunoz closed 7 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?
Added methods for customizing the looks of the view