add sub view in center - iPad
Posted
by Saurabh
on Stack Overflow
See other posts from Stack Overflow
or by Saurabh
Published on 2010-06-08T10:14:22Z
Indexed on
2010/06/08
10:22 UTC
Read the original article
Hit count: 351
ipad-sdk
Hello All,
I want to add a sub view in current view, this sub view is 300x300. When I add subview using
[self.view addSubview:md.view];
the md.view will appear at position (0,0) is there any way to add subview in center?
Thanks
© Stack Overflow or respective owner