About Orientation

如果想让一个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 

reloadData in a UITableView when deviceOrientation change

http://stackoverflow.com/questions/2477277/rotate-a-custom-uitableviewcell

Rotate a custom UITableViewCell

http://stackoverflow.com/questions/2718207/change-uitableviewcell-height-on-orientation-change

Change UITableViewCell Height on Orientation Change

http://lupingui.iteye.com/blog/869880 

iPhone 响应屏幕旋转


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值