zThis到酥料餅是基於我提出的問題在這裏,我都取得了不錯已經取得進展:動態生成的UI欄按鈕須推動使用賽格瑞
custom uitableviewcell will not display label texts
我基本上遵循的是所提供的教程我。
http://brianflove.com/2012/12/10/how-to-create-an-ipad-popover-view/
問題
現在我的問題是,我要動態地生成我的UI欄按鈕,如果我只是拖放它的故事板,我僅限於一個在左邊和一個在右邊。這是我的代碼生成我的按鈕
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithTitle:@"Button" style:UIBarButtonItemStyleBordered target:self action:@selector(getMenu:)];
self.navigationItem.leftBarButtonItems = [[NSArray alloc] initWithObjects:btn, nil];
}
基於此教程中,我需要使用順着接下去酥料餅的,我需要的uitableview
。但是,這需要我有一個錨點像這樣
所以我的問題是,我怎麼添加錨點到UIBarButtonItem
?我一直在尋找,我一直在尋找一些關於創建自定義popover類的東西?這是否準確?