modify deviceadapter on ios