Any way to get the name of iPhone user?

后端 未结 5 1178
醉梦人生
醉梦人生 2020-12-28 17:46

Outside of asking the user to input their name, is there any way to get it off the device?

I tried this library, which attempts to extract the name from [UIDev

5条回答
  •  Happy的楠姐
    2020-12-28 18:24

    For SWIFT you can use

    NSUserName() returns the logon name of the current user.

    func NSUserName() -> String

提交回复
热议问题