What is retainCount in Objective-C?

前端 未结 2 1286
时光取名叫无心
时光取名叫无心 2020-12-17 17:21

I have a UITableView as my first screen with a UINavigation controller.

In my first screen I NSLog(@\"Home Screen retain Count=%d\",[

2条回答
  •  时光取名叫无心
    2020-12-17 18:17

    It sounds fine. Why would it be wrong?

    In general, trying to determine things from the retain count is a bad idea. There are no rules about the amount of times you can retain an object. The only rule is that each retain must be balanced with a release.

提交回复
热议问题