//this is how you can set up a visual state
alanBtnInstance.setVisualState({data:"your data"});
            

[alanBtnInstance setVisualState:@{@"data": @"your data"}];
            

alanBtnInstance.setVisualState(["data": "your data"]
            

JSONObject visualState = new JSONObject("{\"data\":\"your data\"}");
alanBtnInstance.setVisualState(visualState.toString());