Swift #define in Extension -
how can define constant in extension analogous objective c
objective c:
#define integermax nsintegermax swift:
extension nsmutablearray { allow integermax = int.max // doesn't work
you can add together (readonly) computed property:
extension nsmutablearray { var integermax : int { { homecoming int.max } } ... } see: http://stackoverflow.com/a/25428013/2274829
swift
No comments:
Post a Comment