some iOS utils API