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.