English 中文(简体)
UIPopover 主计长 补充意见进展缓慢
原标题:UIPopoverViewController Adding Subviews is slow

我有UIPopover 正在适当显示一名海关监察员的意见。 当我点击一个县时,我就采取行动,因此,我补充说,《国际调查评论》的观点等级。

问题是,这个问题非常缓慢,需要几秒才能出现。 我不想用我方言会计师联合会的密码做任何事情。

- (void)showAccountChooser {
    self.twitterAccountPicker = [TwitterAccountPicker new];
    [self.view addSubview:self.twitterAccountPicker.view];
    self.twitterAccountPicker.view.frame = self.view.bounds;

    self.twitterAccountPicker.view.transform = CGAffineTransformMakeScale(.05, .05);

    [UIView animateWithDuration:0.5f animations:^{
        self.twitterAccountPicker.view.transform = CGAffineTransformMakeScale(1, 1);
    } completion:^(BOOL finished) {
        //[self.twitterAccountPicker viewDidAppear:YES];
    }];
}

IDViewController说,Im 增加是微不足道的,在GeidLoad或GeWill/DidAppear没有重加工。 我已经设定了突破点,并证实它没有做任何事情bad>。

Anyone else notice this when adding views?

最佳回答

在确定了试图回避的断点之后,我认识到,我的<条码>showAccountChooser方法正被称作一种在背景线上演进的路障。 将这一呼吁移至主线,解决了这一问题。

问题回答

暂无回答




相关问题
UIPageControl dot for a search page

Is there any way to add a magnification glass icon instead of the dot for my first page, that allows to perform some search, using the UIPageControl for my native application on the iPhone? I ve ...

UINavigationBar with a static image

Adding an image to a UINavigationItem s titleView is pretty trivial, but when I push a new view on the stack it animates the UINavigationItem sliding off to the left, along with the titleView, and ...

How do you create UIBarButtonItems with a radio interface?

I have a UIToolbar that needs three buttons in a radio style, meaning that of the three, only one button can be pushed at a time. The documentation makes reference to the possibility of setting up ...

why does viewDidAppear not get triggered?

i have a root view controller that inserts a subview at index 0 at its viewDidLoad method. i am trying to get the subview to become firstResponder, but can only do this - from my understanding - in ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Toolbar items in sub-nib

This question has probably been asked before, but my google-fu must be inferior to everybody else s, cause I can t figure this out. I m playing around with the iPhone SDK, and I m building a concept ...