anson1l55

Tax Tip Split - Tip Calculator iOS Apple Watch

Tax Tip Split - Tip Calculator iOS Apple Watch iOS

Screenshots

Tax Tip Split - Tip Calculator iOS Apple Watch iOS
Tax Tip Split - Tip Calculator iOS Apple Watch iOS
Tax Tip Split - Tip Calculator iOS Apple Watch iOS

Specification

How to Use

Sample Code

@IBAction func calculateResult() { let price = mDataDict[Constants.PRICE_KEY]! let taxValue = price * mDataDict[Constants.TAX_KEY]!/100.0 let tipValue = price * mDataDict[Constants.TIP_KEY]!/100.0 let totalValue = price + taxValue + tipValue let splitTotalValue = totalValue/mDataDict[Constants.SPLIT_KEY]! let resultString:String=String(format:"$%.2f", splitTotalValue) mResultButton.setTitle(resultString) }

Comments (1)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}