问题1:loadNibNamed
1 | static NSString *cellId = @"AboutTableViewCell"; |
原因:I suspect that your leak may be coming from the outlets in the nib. Note this phrase in the docs on loadNibNamed::
To establish outlet connections, this method uses the setValue:forKey: method, which may cause the object in the outlet to be retained automatically.
In other words, loadNibNamed sometimes imposes an extra retain because of the odd way key-value-coding works.
However, that is speculation, and there’s no need for it, because there’s no need for you to call loadNibNamed: in the first place!
You’re using a custom UITableViewCell subclass, designed in a nib? Then why not do this the normal way? Make a nib containing one top-level object: the cell. Design the cell in the nib, set its class, hook up its outlets etc. In your code, call registerNib:forCellReuseIdentifier: on the table view, to tell the table view about your nib. When you later call dequeueReusableCellWithIdentifier:, if there are no free cells in the reuse pile, the table view will load your nib and hand you cell. No muss, no fuss.
问题2:imageWithRenderingMode
1 | tabBarItem1.selectedImage = [[UIImage imageNamed:@"img_wifi_hl"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal ]; |
暂时未找到解决办法
问题3:id bridge
1 | - (id)fetchSSIDInfo |
CFBridgingRelease 替换掉原来的(id bridge)