Make the iPhone Screen Dim

后端 未结 2 469
名媛妹妹
名媛妹妹 2020-12-06 05:42

I have managed to ensure that the iPhone doesn\'t auto-lock using:

    [[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ];

Bu

2条回答
  •  一向
    一向 (楼主)
    2020-12-06 06:22

    in iOS 7 and later:

    yourViewController.view.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
    

提交回复
热议问题