-2

I have a question related to ARC. In my interface I have declared a uiwebview as a strong property. Inside my code I have lazy loading like so:

- (UIWebView *)aWebView{
    if(aWebView == nil){
        aWebView = [[UIWebView alloc] initWithFrame:self.bounds];
    }
    return aWebView;
}

Is that code ok under ARC?

4

1 回答 1

3

是的,没关系。ARC 将为您提供发布电话。

于 2012-08-28T19:42:05.670 回答