Re: [問題] viweDidUnload該填的內容為何?
※ 引述《denru01 (阿儒)》之銘言:
: [cell.contentView addSubview:textField];
查到的addSubView,他會做retain的動作,而在removeFromSuperview時會做release。
addSubview:
Adds a view to the receiver’s subviews so it’s displayed above its siblings.
- (void)addSubview:(UIView *)view
Discussion
This method also sets the receiver as the next responder of view. The
receiver retains view. If you use removeFromSuperview to remove view from the
view hierarchy, view is released. If you want to keep using view after
removing it from the view hierarchy (if, for example, you are swapping
through a number of views), you must retain it before invoking
removeFromSuperview.
Availability
* Available in iPhone OS 2.0 and later.
--
或許人生是一段整合內在的自己
並尋求人間一點真情的過程吧
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.59.242
→
08/05 10:13, , 1F
08/05 10:13, 1F
→
08/05 10:13, , 2F
08/05 10:13, 2F
→
08/05 10:13, , 3F
08/05 10:13, 3F
→
08/05 10:14, , 4F
08/05 10:14, 4F
推
08/05 11:21, , 5F
08/05 11:21, 5F
→
08/05 11:22, , 6F
08/05 11:22, 6F
→
08/05 12:01, , 7F
08/05 12:01, 7F
→
08/05 12:02, , 8F
08/05 12:02, 8F
→
08/05 12:02, , 9F
08/05 12:02, 9F
→
08/05 12:03, , 10F
08/05 12:03, 10F
→
08/05 12:04, , 11F
08/05 12:04, 11F
→
08/05 15:11, , 12F
08/05 15:11, 12F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 4 之 4 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章