I have created Empty control - LogonErrorMessage.xib. In interface builder placed there a View control and inside it placed a label - kind of created custom message control.
Then i created Objective-C class that is named also LogonErrorMessage.h and LogonErrorMessage.m.
Then in LogonErrorMessage.xib i selected View control and in "Custom class" section changed class to LogonErrorMessage, to tie the *.xib to class.
Now i'm trying to do this on my MainViewController:
LogonErrorMessage *logonError = [[LogonErrorMessage alloc] init];
logonError.iboMessageText.text = message;
logonError.frame= CGRectMake(0, 0, 307, 100);
[self.view addSubview:logonError];
And the message control doesn't show up - what is the problem?