iOS-text sample code.