Recently, I built an iOS app and I have packed it as ipa. Then I used the Application Loader to upload it to itunecconnect. Then I got an error you are not authorised to use this service. This is a very silly, that is because I have reset my password recently, I need to do click the area I clicked in the picture. And then I will have a dialog box popup then I entered the new login details and then it works!
I spent about half hour to find a read-only property for Text field in xcode. There is no such function. Should I modify text change event to reject any user typing? Actually, the most proper way is to uncheck user interaction enabled under the properties window for that text field.
If you need to do it programmatically, please following this example:
When I started to learn Objective C, that is hard to understand the NSDecimalNumber. I am C# and Java Programmer, in these languages, we used the primitive, such as integer and long, I can just use - and + as operand. However, in IOS, the most of situations, we are using NSDecimalNumber. That is an object. So, you cannot use + and -. If you write this, it will cause error:
You should use such operands:
decimalNumberByAdding = +
decimalNumberBySubtracting = -
decimalNumberByMultiplyingBy = *
decimalNumberByDividingBy = /