-
Notifications
You must be signed in to change notification settings - Fork 91
show in center of parent view #12
Comments
You can do this yourself - if you look there is a "center" property that you can set before you "show". |
yes, but this property not used. |
Ah, now I get it. Its used once at initialization time, but if the |
I just added this to my fork and tested it.
|
See my pull request |
I was having issues with my HUD not appearing in the center on the iPad... I took uranpro's lead and revised my show method with the following which fixed my issue... - (void)show {
UIView *sv = [self.view superview];
self.view.center = CGPointMake(sv.bounds.origin.x + sv.bounds.size.width/2, sv.bounds.origin.y + sv.bounds.size.height/2);
[__view show];
} |
I added "autocenter" property in my fork =) |
On 8/24/11 3:06 AM, uranpro wrote:
David |
On 8/23/11 6:25 PM, cwagner wrote:
|
You are correct, but for this app that is how we always want it to appear. |
(void)show {
UIView *sv = [self.view superview];
self.view.center = CGPointMake(self.view.center.x, sv.bounds.origin.y + sv.bounds.size.height / 2);
[__view show];
}
The text was updated successfully, but these errors were encountered: