TLLNameFromDevice
Simple UIDevice category which make you able to retrieve the user firstname and lastname from the device name.
Install / Use
/learn @tibo/TLLNameFromDeviceREADME
This is a simple UIDevice category that will potentially enable you able to guess the first and last name of a user from the iPhone's device name.
This is absolutely not a fool-proof solution, use it with caution.
Get started
Just drag the UIDevice+NameFromDevice.h/m files and include it where you need it.
This category provides the following methods that work with current devices (iPhone, iPad, iPod):
-(NSString *)fullNameFromDevice;
-(NSString *)firstName;
-(NSString *)lastName;
Localizations
This category works with known patterns. For now it handles basic English, French, and Italian default naming such as:
- "John Doe's iPhone"
- "iPhone of John Doe"
- "iPhone de John Doe"
- "iPhone di John Doe"
If you know other patterns from other languages, please contribute.
If you contribute, please add a basic test case in the test target to make sure your pattern is working. (tests for the actuals patterns on the way, I'm still working on it)
License
MIT license.
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
