add ios version requirement
add sample code