夜晚本來像用代碼寫一個Button按鈕,但是出現問題:開始是這樣建立的
按照這個看似沒問題,但是在模拟器上運作的時候,Button并沒有出現,用模拟器分析顯示Value stored to 'writeButton' during its initialization is never read(值存儲到“writeButton”在其初始化是從來沒有讀過)
這樣寫在模拟器上也沒有顯示Button
當這樣寫的時候才出現Button在模拟器視圖上,于是啄麼着是Button初始化frame時候,沒有确定Button類型(此處是UIButtonTypeRoundedRect),
但是由product----》Analyze 又出現Value stored to 'writeButton' during its initialization is never read
再次修改
難道是因為不需要初始化嗎? 這個問題暫時不能了解
本文轉自新風作浪 51CTO部落格,原文連結:http://blog.51cto.com/duxinfeng/1208767,如需轉載請自行聯系原作者