کلاس GCKUIUtils
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
روش های سودمند رابط کاربری
- از آنجا که
- 3.0
NSObject را به ارث می برد.
+ (nullable UIViewController *) currentViewController |
|
|
|
با پیمایش در سلسله مراتب view controller که با کنترلر view root شروع می شود، نمای کنترل کننده فعال فعلی را برمی گرداند.
+ (NSString *) timeIntervalAsString: |
|
(NSTimeInterval) |
timeInterval |
|
یک بازه زمانی را در قالب MM:SS یا H:MM:SS قالببندی میکند.
+ (NSString *) localTimeAsString: |
|
(NSTimeInterval) |
localTime |
|
زمان محلی را بر اساس منطقه فعلی قالب بندی می کند.
- از آنجا که
- 4.3.4
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eGCKUIUtils\u003c/code\u003e provides user interface utility methods for iOS development, available since version 3.0.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods to access the current view controller within the hierarchy.\u003c/p\u003e\n"],["\u003cp\u003eIt includes functionalities for formatting time intervals and local times into readable strings.\u003c/p\u003e\n"]]],["The `GCKUIUtils` class provides static utility methods for user interface operations. It can retrieve the currently active `UIViewController` by traversing the view controller hierarchy. Additionally, it offers methods to format time: `timeIntervalAsString:` formats a given time interval into MM:SS or H:MM:SS format, and `localTimeAsString:` formats local time based on the user's current locale.\n"],null,[]]