如果想让一个UIVIew始终都在屏幕中心,
可以设置它的Y为 ceilf((self.view.bounds.size.height - Height)/2),
同时设置autoresizingMask = UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleBottomMargin 即可。
http://tech.techweb.com.cn/viewthread.php?tid=558331 UIView中bounds和frame的差别?
- (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation{
[my_table reloadData];
}
uitableviewcell orientation
http://www.google.com.hk/search?hl=zh-TW&newwindow=1&safe=strict&tbo=d&spell=1&q=uitableviewcell+orientation&sa=X&ei=utQQUdPqHY2ZiQfry4GoCA&ved=0CC0QvwUoAA
http://stackoverflow.com/questions/5664890/reloaddata-in-a-uitableview-when-deviceorientation-change