MoonWeight
1.0.0

我们在月球中的质量是一个具有Swift-5.5的iOS应用程序。这是一个了解用户体重数量的公斤,并计算出我们在月球上的数公斤。为了在月球上找到我们的质量,我们通过除以6来找到正常的质量。

该应用程序使用许多不同的组件,例如图像,按钮,Textfield和标签。用户将能够通过在所需字段中进入质量,然后按计算按钮来找到他的质量。

用户可以输入他的体重,并查看每月同等的。用户只有一个直接排除在6的质量,因为认为它具有的质量是荒谬的,我们将值定义为double并执行操作。
我写了一篇有关该应用程序的博客文章。您可以从下面的链接中访问文章:
Swift -4 Ile Iosuygulaması -AydakiAğıımızNeKadar?
@ IBOutlet weak var kutleText : UITextField !
@ IBOutlet weak var sonucText : UILabel !我们定义了一个文本字段以获取质量值。我们定义了一个标签来处理接收值并将其显示给用户。
@ IBAction func calculate ( _ sender : Any ) {
var kutle = Double ( kutleText . text! )
var sonuc = kutle! / 6.0
sonucText . text = " Aydaki kilonuz : ( sonuc ) "
}我们希望按下按钮时采取行动。从用户收到的值除以6,并分配给变量。我们向屏幕上的用户显示此值。我们将此值分配给结果标签。
MIT License
Copyright (c) 2022 Halil OZEL
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.