מחלקת GCKUIUtils
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שיטות תועלת לממשק המשתמש.
- מאז
- 3.0
יורש את NSObject.
+ (nullable UIViewController *) currentViewController |
|
|
|
מחזירה את הבקר של התצוגה המפורטת שפעיל כרגע על ידי ניווט בהיררכיה של בקר התצוגה, שמתחילה בבקר התצוגה הבסיסית.
+ (NSString *) timeIntervalAsString: |
|
(NSTimeInterval) |
timeInterval |
|
עיצוב מרווח זמן בפורמט MM:SS או H:MM:SS.
+ (NSString *) localTimeAsString: |
|
(NSTimeInterval) |
localTime |
|
עיצוב זמן מקומי על סמך הלוקאל הנוכחי.
- מאז
- 4.3.4
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["`GCKUIUtils` provides user interface utility methods for iOS development, available since version 3.0."],["It offers methods to access the current view controller within the hierarchy."],["It includes functionalities for formatting time intervals and local times into readable strings."]]],["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"]]