3 ms·
> and there doesn't seem to be a way to define optional method parameters Did you miss the part about default values? If you're calling an Objective-C selecto
by mercutio2 12y ago
> and there doesn't seem to be a way to define optional method parameters
Did you miss the part about default values?
If you're calling an Objective-C selector with more than one argument, you are indeed using an external parameter name, but external parameters are explicitly not required if you're writing pure Swift.
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Functions.html#//apple_ref/doc/uid/TP40014097-CH10-XID_213 https://developer.apple.com/library/prerelease/ios/documenta...
- kennywinker 12y agoOh cool, I definitely missed that!