English 中文(简体)
UIBarButton 项目两种方法
原标题:UIBarButton item two methods / IBAction

我有一个自下而上的工具bar子,其中包含一个开放<代码>的纽吨。 UIWebView *web 观点

- (IBAction)rebateWebView:(id)sender {
       [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
}

现在,在网上电文填满之后,我想改变纽特的称号,当纽特重新启用时,我想网上电文消失,或者从实质上重载第一线控制器。

我知道如何改变标题,并且能够这样做。 我最大的问题是放弃网上意见。 我可以总结一下我的头脑。

最佳回答

www.un.org/spanish/ga 观点摘除From SuperView];,将从表面上删除View,这几乎肯定是您的看法控制器的<代码>。

然后,视您是否仍需要,而定,如果您不使用自动取款机,则您可能希望nil> 和/或release/code>。

如果你试图“重载”观点控制器,则(这完全不同于投递<代码>。webView<>/code>。

如果您希望重新掌握<代码>本身,Jim s则建议也有效。

self.webView.hidden = YES to hide self.webView.hidden = NO to show

问题回答

暂无回答




相关问题
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, ...