I came across strange behavior in memory just by displaying the default keyboard. I just created a project with a .xib file for testing. This .xib file has a UITextField element in it and is connected to .h via:
@property(nonatomic, retain) IBOutlet UITextField *sometext;
.m has no changes, but:
@synthesize sometext;
- (void)viewDidAppear:(BOOL)animated {
[someText becomeFirstResponder];
}
As you can see, this is very simple. The problem is that as soon as the keyboard is displayed, the memory allocated for it will NEVER be omitted. I tested this script in another project with the only difference being that I have two .xib files. Standard calls to pushViewController and popViewController are made. The tools show an increase of 600kb in memory allocations [which are much larger in the iPhone device itself].
In general, hehe. My question is: