UIWebView崩溃?

时间:2010-10-29 17:45:53

标签: iphone

Hii Friends,

该应用程序是使用一个放置了广告在底部的图像浏览器,当点击时将移动到php注册页面,当用户关闭reg.View它将返回到imageviewer,因为我使用Three20UI库为PhotoViewer,

代码如下,

-(void) actionCall {

if(isValue) {

    NSLog(@"removeView from WEbview");

    UIView *tmpView = (UIView *)[self.view viewWithTag:10];

    [tmpView removeFromSuperview];

    [custView removeFromSuperview];

    isValue = FALSE;
}

if(changeViewSize == 1)
{
    myView.frame = CGRectMake(0, 365, 360, 72);
}

 }

[cusBtn addTarget:self action:@selector(actionCall) forControlEvents:UIControlEventTouchUpInside];

单击closebtn时程序崩溃,Any Solutions Plz。

1 个答案:

答案 0 :(得分:1)

试试这个:

-(void) actionCall:(id)sender {

...

[cusBtn addTarget:self action:@selector(actionCall:) forControlEvents:UIControlEventTouchUpInside];