IOS Remove last character from string

In your controller class, create an action method you will hook the button up to in Interface Builder. Inside that method you can trim your string like this:
if ( [string length] > 0)
    string = [string substringToIndex:[string length] - 1];

Comments

Popular posts from this blog

Install DNF in RHEL/CentOS 7

Java : Variables Declaring

PostgreSQL - String Function