I am designing an application without a title bar, however when I remove the title bar using interface builder in Xcode 4 , it causes the editable fields (the ones I tried are textView, and textField) not being editable, despite editable checked in there properties? why this happens and is there anyway to prevent it?
You have to subclass your window and overwrite the following methods:
- (BOOL)canBecomeKeyWindow {
// because the window is borderless, we have to make it active
return YES;
}
- (BOOL)canBecomeMainWindow {
// because the window is borderless, we have to make it active
return YES;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With