2012-09-11 28 views
3

我已經通過繼承UIAlertView中 創建Custome AlertView類和i。在 加入的UITableView - (無效)製備方向不工作的UITableView內部AlertView

方法

This is Image of TableView inside UIAlertView with Potrait Orientation

This is when i Changed Orientation

可以任何一個建議我擺脫這個問題的方式... 在此先感謝。

我這樣做是爲了保持方向變化

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; 
    NSNotificationCenter* notifCenter = [NSNotificationCenter defaultCenter]; 
    [notifCenter addObserver:self 
        selector:@selector(orientationChanged) 
         name:UIDeviceOrientationDidChangeNotification 
         object:nil]; 
+0

你給Tableview的任何Autoresizing屬性? – Sandy

回答

2

這對於控制一個不錯的主意的軌道,我發現Git倉庫有準備一個:https://github.com/blommegard/SBTableAlert/blob/master/SBTableAlert.m

它的方位變化邏輯調度用零間隔定向改變的方法。該代碼是在無版權的MIT許可證下分發的,因此您可以使用它或只是採取一些有用的提示。

+0

感謝您的關注,我會盡快回復。 – Anand