久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='KO7AN'><tr id='KO7AN'><dt id='KO7AN'><q id='KO7AN'><span id='KO7AN'><b id='KO7AN'><form id='KO7AN'><ins id='KO7AN'></ins><ul id='KO7AN'></ul><sub id='KO7AN'></sub></form><legend id='KO7AN'></legend><bdo id='KO7AN'><pre id='KO7AN'><center id='KO7AN'></center></pre></bdo></b><th id='KO7AN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KO7AN'><tfoot id='KO7AN'></tfoot><dl id='KO7AN'><fieldset id='KO7AN'></fieldset></dl></div>
      <bdo id='KO7AN'></bdo><ul id='KO7AN'></ul>

    1. <small id='KO7AN'></small><noframes id='KO7AN'>

      1. <tfoot id='KO7AN'></tfoot>
        <legend id='KO7AN'><style id='KO7AN'><dir id='KO7AN'><q id='KO7AN'></q></dir></style></legend>

        Objective-C:將數字格式化為序數:1, 2, 3, .. to 1st, 2

        Objective-C: format numbers to ordinals: 1, 2, 3, .. to 1st, 2nd, 3rd(Objective-C:將數字格式化為序數:1, 2, 3, .. to 1st, 2nd, 3rd)

        <small id='uwMS6'></small><noframes id='uwMS6'>

        <tfoot id='uwMS6'></tfoot>

            <bdo id='uwMS6'></bdo><ul id='uwMS6'></ul>

              <tbody id='uwMS6'></tbody>
                  <legend id='uwMS6'><style id='uwMS6'><dir id='uwMS6'><q id='uwMS6'></q></dir></style></legend>

                  <i id='uwMS6'><tr id='uwMS6'><dt id='uwMS6'><q id='uwMS6'><span id='uwMS6'><b id='uwMS6'><form id='uwMS6'><ins id='uwMS6'></ins><ul id='uwMS6'></ul><sub id='uwMS6'></sub></form><legend id='uwMS6'></legend><bdo id='uwMS6'><pre id='uwMS6'><center id='uwMS6'></center></pre></bdo></b><th id='uwMS6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uwMS6'><tfoot id='uwMS6'></tfoot><dl id='uwMS6'><fieldset id='uwMS6'></fieldset></dl></div>
                  本文介紹了Objective-C:將數字格式化為序數:1, 2, 3, .. to 1st, 2nd, 3rd的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 Objective C 中,有沒有辦法將 integer 格式化為序數1 => "1st"、2 => "2nd" 等...適用于任何語言?因此,如果用戶是法國人,他會看到1er"、2ieme"等.

                  In Objective C, is there any way to format an integer to ordinals 1 => "1st", 2 => "2nd" etc... that works for any language? So if the user is French he will see "1er", "2ieme" etc..

                  非常感謝!

                  編輯:這是一個 iOS 應用程序

                  Edit: This is for an iOs app

                  推薦答案

                  你有沒有看過 TTTOrdinalNumberFormatter" rel="noreferrer">FormatterKit?它工作得很好,我很確定這正是您正在尋找的.

                  Have you taken a look at TTTOrdinalNumberFormatter which is in FormatterKit? It works great, and I'm pretty sure it's exactly what you're looking for.

                  這是一個從套件中提取的示例:

                  Here's an example taken from the kit:

                  TTTOrdinalNumberFormatter *ordinalNumberFormatter = [[TTTOrdinalNumberFormatter alloc] init];
                  [ordinalNumberFormatter setLocale:[NSLocale currentLocale]];
                  [ordinalNumberFormatter setGrammaticalGender:TTTOrdinalNumberFormatterMaleGender];
                  NSNumber *number = [NSNumber numberWithInteger:2];
                  NSLog(@"%@", [NSString stringWithFormat:NSLocalizedString(@"You came in %@ place!", nil), [ordinalNumberFormatter stringFromNumber:number]]);
                  

                  假設您為You come in %@ place!"提供了本地化字符串,輸出將是:

                  Assuming you've provided localized strings for "You came in %@ place!", the output would be:

                  * English: "You came in 2nd place!"
                  * French: "Vous êtes venu à la 2eme place!"
                  * Spanish: "Usted llegó en 2.o lugar!"
                  

                  這篇關于Objective-C:將數字格式化為序數:1, 2, 3, .. to 1st, 2nd, 3rd的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數據中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設備位置(iOS 和 Android)設備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當前位置的最簡單方法)
                      <tbody id='B1dZB'></tbody>

                    <small id='B1dZB'></small><noframes id='B1dZB'>

                      <legend id='B1dZB'><style id='B1dZB'><dir id='B1dZB'><q id='B1dZB'></q></dir></style></legend>
                      • <bdo id='B1dZB'></bdo><ul id='B1dZB'></ul>

                          • <tfoot id='B1dZB'></tfoot>
                          • <i id='B1dZB'><tr id='B1dZB'><dt id='B1dZB'><q id='B1dZB'><span id='B1dZB'><b id='B1dZB'><form id='B1dZB'><ins id='B1dZB'></ins><ul id='B1dZB'></ul><sub id='B1dZB'></sub></form><legend id='B1dZB'></legend><bdo id='B1dZB'><pre id='B1dZB'><center id='B1dZB'></center></pre></bdo></b><th id='B1dZB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='B1dZB'><tfoot id='B1dZB'></tfoot><dl id='B1dZB'><fieldset id='B1dZB'></fieldset></dl></div>
                            主站蜘蛛池模板: 91久久国产精品 | 国产精品99久久久久久久vr | 久久国产精品-久久精品 | 毛片的网址 | 亚洲精品一二区 | 国产一级网站 | www.国产一区| 国产97人人超碰caoprom | 亚洲精品一区二区三区蜜桃久 | 欧美二区在线 | 欧美一区二区在线免费观看 | 国产高清免费 | 成人精品在线观看 | 草b视频 | 亚洲永久免费观看 | 亚洲精品在线观看视频 | 欧美在线资源 | 国产精品一区二区三区四区 | 中文字幕欧美一区 | 日韩免费av | 毛片韩国 | 狠狠视频 | 欧美一区日韩一区 | 羞羞视频免费观看入口 | 亚洲一区电影 | 久久国产一区 | 日韩视频一区在线观看 | 国产精品一区二区三区在线 | 国产精品久久久久免费 | 国产欧美综合在线 | 国产一区电影 | 一区二区三区中文字幕 | 龙珠z国语版在线观看 | www.久久.com | 成人天堂 | 亚洲精品一区中文字幕乱码 | av免费网站在线观看 | 亚洲女人天堂网 | 日本久久网 | av午夜激情 | 亚洲黄色一区二区三区 |