Hi I am trying to add this objs code but the CustomView is not returning a UIView
Any advice?
B4X:
@end
@interface CustomView : UIView
// Override inputAccessoryView to readWrite
@property (nonatomic, readwrite, retain) UIView *inputAccessoryView;
@end
@implementation CustomView
// Override canBecomeFirstResponder
// to allow this view to be a responder
- (BOOL) canBecomeFirstResponder {
return YES;
}
// Override inputAccessoryView to use
// an instance of KeyboardBar
- (UIView *)inputAccessoryView {
if(!_inputAccessoryView) {
CGRect screen = [[UIScreen mainScreen] bounds];
CGRect frame = CGRectMake(0,0, CGRectGetWidth(screen), 40);
_inputAccessoryView = [[UITextView alloc]initWithFrame:CGRectMake(5, 5, frame.size.width - 70, frame.size.height - 10)];
}
return _inputAccessoryView;
}
#end if
Any advice?