1
我有一個方法,像這樣傳遞價值的方法是始終爲零
-(void) reDrawPreviewWith:(UIColor *)textColor withGlowColor:(UIColor *)glowColor withGlowIntensity:(float)glowIntensity
我調用此方法的UIView的子類,由
float glowIntensity = 30.0f;
[preview reDrawPreviewWith:[UIColor colorWithRed:red green:green blue:blue alpha:1.0]
withGlowColor:[UIColor colorWithRed:red green:green blue:blue alpha:1.0]
withGlowIntensity:glowIntensity];
但裏面reDrawPreviewWith的身體,我總是讓glowIntensity = 0
你嘗試把30.0f直接進入參數?這聽起來沒有什麼錯我 – vodkhang 2010-06-26 06:59:49
你如何確定'glowIntensity' = 0? – diederikh 2010-06-26 08:10:00
vodkhang:是的,我也試圖與30.0f直接進入參數,它不工作 – coure2011 2010-06-26 19:21:17