There are two errors in the delegate method.
func uploadProgressPercentage(percentage:Int?){ println(percentage) }
The parameter should not be optional, and the type C int displayed in Swift as CInt (an alias for Int32 ):
func uploadProgressPercentage(percentage:CInt){ println(percentage) }
Alternatively, you can use NSInteger in the Objective-C protocol, which maps to int in Swift. It will be a 32-bit or 64-bit integer, depending on the architecture, while int / CInt always 32-bit.
source share