ios - custom NSExpression functions like sin(x) -
i know how add custom functions nsnumber nsexpression work it. use need declarate string "function(1, 'sin')". is way declarate "sin(1)"?
no, cannot extend syntax understood nsexpression(format:)
.
for advanced expression parsing , evaluating, use 3rd party solutions such ddmathparser.
Comments
Post a Comment