How to change time and timezone in iPhone simulator?

前端 未结 11 1783
礼貌的吻别
礼貌的吻别 2020-12-04 11:52

How do I change time and time zone in the iPhone simulator?

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 12:30

    It would be useful if Apple provided a "Simulate date" as they provided a "Simulate Location" menu. What I do is set a breakpoint immediately after getting the date (saving it in a variable) and then modify the value. Or just modify the spot where I check for a date change and make it return true.

提交回复
热议问题