How to validate Textfields with greater than 0 value. i tried all suggestions of stack overflow i failed to validate it. and how to check value of textfield less than or equal to my label value.
let inputStr = totalAmountTextfield.text as? String
let inputInt = Int(inputStr!)
if (inputInt)! < 0
{
let alert = UIAlertView() alert.title = "Message"
alert.message = "Enter Valid Amount"
alert.addButton(withTitle: "Ok")
alert.delegate = self alert.show() }
else{ print("pay pressed")
razorpay.open(options) }
}