2
我想更新我的應用程序工作在IOS 7,並得到一個錯誤,告訴我以下代碼已棄用,並使用屬性。蘋果開發者網站只是說它的棄用,但沒有提供一個線索如何解決它。任何人都可以將我的代碼翻譯成新格式?試圖更新我的項目,以ios 7錯誤 - drawInRect deprected
[str drawInRect: r
withFont: f1
lineBreakMode: NSLineBreakByWordWrapping
alignment: NSTextAlignmentCenter];
你試過'drawInRect:withAttributes:'? – Aaron