原文地址:https://www.cnblogs.com/ihojin/p/ios-sample-code.html