1. <tfoot id='KoSeN'></tfoot>

      <bdo id='KoSeN'></bdo><ul id='KoSeN'></ul>

      <legend id='KoSeN'><style id='KoSeN'><dir id='KoSeN'><q id='KoSeN'></q></dir></style></legend>
      <i id='KoSeN'><tr id='KoSeN'><dt id='KoSeN'><q id='KoSeN'><span id='KoSeN'><b id='KoSeN'><form id='KoSeN'><ins id='KoSeN'></ins><ul id='KoSeN'></ul><sub id='KoSeN'></sub></form><legend id='KoSeN'></legend><bdo id='KoSeN'><pre id='KoSeN'><center id='KoSeN'></center></pre></bdo></b><th id='KoSeN'></th></span></q></dt></tr></i><div id='KoSeN'><tfoot id='KoSeN'></tfoot><dl id='KoSeN'><fieldset id='KoSeN'></fieldset></dl></div>
    1. <small id='KoSeN'></small><noframes id='KoSeN'>

      如何在ios中评估字符串方程

      时间:2023-05-31

        <legend id='6ZS2p'><style id='6ZS2p'><dir id='6ZS2p'><q id='6ZS2p'></q></dir></style></legend>
            • <bdo id='6ZS2p'></bdo><ul id='6ZS2p'></ul>
              <tfoot id='6ZS2p'></tfoot>

                  <tbody id='6ZS2p'></tbody>
              1. <i id='6ZS2p'><tr id='6ZS2p'><dt id='6ZS2p'><q id='6ZS2p'><span id='6ZS2p'><b id='6ZS2p'><form id='6ZS2p'><ins id='6ZS2p'></ins><ul id='6ZS2p'></ul><sub id='6ZS2p'></sub></form><legend id='6ZS2p'></legend><bdo id='6ZS2p'><pre id='6ZS2p'><center id='6ZS2p'></center></pre></bdo></b><th id='6ZS2p'></th></span></q></dt></tr></i><div id='6ZS2p'><tfoot id='6ZS2p'></tfoot><dl id='6ZS2p'><fieldset id='6ZS2p'></fieldset></dl></div>

                <small id='6ZS2p'></small><noframes id='6ZS2p'>

              2. 本文介绍了如何在ios中评估字符串方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                ios中的字符串方程有没有办法求解?

                Is there way to solve the string equations in ios ?

                例如

                输入:

                NSString * str =@"1+2";

                输出:

                NSInteger result = 3//即来自 str

                如何解决这个问题并获得预期的结果!

                How to go about this and get expected result!

                请帮忙!

                推荐答案

                你可以使用 NSExpression:

                You can use NSExpression for this:

                NSExpression *expression = [NSExpression expressionWithFormat:@"1+2"];
                NSLog(@"%@", [expression expressionValueWithObject:nil context:nil]);
                

                有关更多信息,请阅读所用方法的文档.

                For further information read the documentation of the used methods.

                这篇关于如何在ios中评估字符串方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:接收没有音频的远程控制事件 下一篇:iOS5 TabBar 字体和颜色

                相关文章

                最新文章

                <tfoot id='P71pz'></tfoot>
                • <bdo id='P71pz'></bdo><ul id='P71pz'></ul>

                    <legend id='P71pz'><style id='P71pz'><dir id='P71pz'><q id='P71pz'></q></dir></style></legend>

                    <i id='P71pz'><tr id='P71pz'><dt id='P71pz'><q id='P71pz'><span id='P71pz'><b id='P71pz'><form id='P71pz'><ins id='P71pz'></ins><ul id='P71pz'></ul><sub id='P71pz'></sub></form><legend id='P71pz'></legend><bdo id='P71pz'><pre id='P71pz'><center id='P71pz'></center></pre></bdo></b><th id='P71pz'></th></span></q></dt></tr></i><div id='P71pz'><tfoot id='P71pz'></tfoot><dl id='P71pz'><fieldset id='P71pz'></fieldset></dl></div>

                    <small id='P71pz'></small><noframes id='P71pz'>