English 中文(简体)
显示看法的电话工具
原标题:iphone toolbar showing view

ok,我找不到国际会计师联合会提出的新观点的方法。

i have an app based on UINavigationController. Once i come to a view showing details of the object, i have 1 toolBar at the bottom so i can give some options to user. When he press on barButtomItem, i want to show a new view but not changing the navigationbar, so if i press back button he goes back from detail view and not from new option.

i 知道推进的方法 观点主计长,但并不按需要行事。

thx in advance!

edit: just to be a more bit more clear if i call [[self navigationController]pushViewController:loteCompraViewController animated:YES]; i get a new view, related to the new controller but it also changes the navigationbar and that is not good for me.

问题回答

您对“显示物体详细情况的概览”两种方法的看法控制员:isShowingOverlayViewdismissOverlayView。 在isShowingOverlayView中,如果你重新表示“新观点”,将YES退回,因为“他关于ButtomItem的新闻”。 在<编码>dismissOverlayView中,隐藏着“新观点”。

然后,使你自己成为UINavigation子类 主计长。 您的子流层中压倒性popViewController Animated:使用您的物体尾目观测控制器的这些方法,如:

- (UIViewController *)popViewControllerAnimated:(BOOL)animated
{
    if ([self.topViewController respondsToSelector:@selector(isShowingOverlayView)]
        && [(id)self.topViewController isShowingOverlayView])
    {
        [(id)self.topViewController dismissOverlayView];
        return nil;
    } else {
        return [super popViewControllerAnimated:YES];
    }
}

Use this subclass instead of the standard UINavigationController.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

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 ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签