Hey there,
Is it possible to display standard Apple widgets over the top of an Edgelib display on the iPhone? For example, can I add a UITextField over the top of the edge display? All of my attempts to do so have failed so far.
I figured that I should be able to get the key window from the singleton UIApplication, then create a new subview and push it to the front. E.g., in Objective-C:
But this does not seem to display anything on the iPhone. Does anyone have any help or suggestions. I'd rather not have to reimplement all of the iPhone's keyboard text entry functionality in Edge.
Cheers,
Martin.
Is it possible to display standard Apple widgets over the top of an Edgelib display on the iPhone? For example, can I add a UITextField over the top of the edge display? All of my attempts to do so have failed so far.
I figured that I should be able to get the key window from the singleton UIApplication, then create a new subview and push it to the front. E.g., in Objective-C:
- Code:
CGRect frame = {0, 100, 320, 140};
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
UITextField *text = [UITextField alloc] initWithFrame: frame];
[window addSubview: text];
[window bringSubviewToFront: text];
But this does not seem to display anything on the iPhone. Does anyone have any help or suggestions. I'd rather not have to reimplement all of the iPhone's keyboard text entry functionality in Edge.
Cheers,
Martin.