{"id":1875,"date":"2015-04-16T13:27:12","date_gmt":"2015-04-16T13:27:12","guid":{"rendered":"http:\/\/bestkora.com\/IosDeveloper\/?p=1875"},"modified":"2015-08-24T16:32:42","modified_gmt":"2015-08-24T16:32:42","slug":"kak-sozdat-nsnumberformatter-singleton-v-swift","status":"publish","type":"post","link":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/","title":{"rendered":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) &#8212;  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2"},"content":{"rendered":"<p>\u041c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong> \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 \u00a0\u043c\u043e\u0435\u043c \u00a0<strong><span style=\"color: #0000ff;\">CalculatorBrain<\/span><\/strong> \u0432 \u0417\u0430\u0434\u0430\u043d\u0438\u0438 2 \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &#171;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Swift. Winter 2015&#187;, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 <strong>2324.00<\/strong> \u043d\u0430 <strong>2 324<\/strong> \u0431\u0435\u0437 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c\u0443 <strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span> <\/strong>\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u043d\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f <strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <em><strong><a href=\"http:\/\/nshipster.com\/nsformatter\/\">\u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 <\/a><\/strong><\/em>\u0432 <strong>iOS<\/strong>, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0439 &#171;\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u0438&#187; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0435\u043b\u0430 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u00a0<strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong> \u0432\u0441\u044e\u0434\u0443 \u0432 \u043c\u043e\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<strong> Singleton<\/strong>\u00a0( <strong>\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d<\/strong> ) &#8212; \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u00a0\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0432\u0441\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p><strong>Singleton<\/strong>\u00a0(<strong>\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d<\/strong>) &#8212; \u044d\u0442\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d (\u0448\u0430\u0431\u043b\u043e\u043d ) \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0432 <strong><em>Swift<\/em><\/strong>, \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0432 <strong><em>Swift<\/em><\/strong> \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u00a0<strong>Singleton<\/strong>. \u0412 <em><strong>Objective-C<\/strong><\/em>, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u0443\u0436\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u0430 <strong><span style=\"color: #0000ff;\">dispatch_once<\/span> <\/strong>\u0438\u0437<em><strong>\u00a0<a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/Performance\/Reference\/GCD_libdispatch_Ref\/\">Grand Central Dispatch<\/a><\/strong>.<\/em><\/p>\n<p>\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439<em> <a href=\"http:\/\/stackoverflow.com\/questions\/24024549\/dispatch-once-singleton-model-in-swift\"><strong>\u043f\u043e\u0441\u0442 \u0432 \u00a0stack overflow<\/strong>, <\/a><\/em>\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0443\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <strong>Singleton<\/strong>\u00a0\u0432 <em><strong>Swift<\/strong><\/em>, \u0445\u043e\u0442\u044f \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043d\u0435 \u0441\u043d\u0430\u0431\u0436\u0435\u043d \u043a\u0430\u043a\u0438\u043c-\u0442\u043e &#171;\u0433\u043b\u0443\u0431\u043e\u043a\u0438\u043c&#187; \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c. \u041a\u043b\u0430\u0441\u0441 \u00a0<strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span> <\/strong>\u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <strong>Singletons<\/strong>\u00a0\u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u00a0<strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong> \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n<p><!--more--><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c <strong>Singleton<\/strong>\u00a0\u0434\u043b\u044f\u00a0<strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong>\u00a0.\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <strong>Foundation<\/strong><\/p>\n<p>[objc]import Foundation<br \/>\n[\/objc]<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c, \u043c\u044b \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 <strong><span style=\"color: #0000ff;\">CalculatorFormatter<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong>.<\/p>\n<p>[objc]class CalculatorFormatter: NSNumberFormatter {<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #0000ff;\">NSNumberFormatter<\/span><\/strong>, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">required<\/span> <span style=\"color: #0000ff;\">init<\/span><\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u041c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u044d\u0442\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u0432 \u0442\u0443 \u0436\u0435 \u0441\u0430\u043c\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f <strong>super<\/strong>\u00a0\u043a\u043b\u0430\u0441\u0441\u0430, \u00a0\u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong><span style=\"color: #0000ff;\">aDecoder<\/span><\/strong> \u0432 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u042d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u043e \u044d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>[objc]required init(coder aDecoder: NSCoder) {<br \/>\n  super.init(coder: aDecoder)<br \/>\n}[\/objc]<\/p>\n<h2>\u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c <span style=\"color: #0000ff;\">init()<\/span><\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c (override) \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e<strong><span style=\"color: #0000ff;\"> init<\/span><\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u043d\u0443\u0442\u0440\u0438 <strong><span style=\"color: #0000ff;\">init<\/span><\/strong>\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">super.init<\/span><\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u0412\u043e\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 <strong><span style=\"color: #0000ff;\">CalculatorBrain<\/span><\/strong>\u00a0(\u0443 \u0432\u0430\u0441 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c).<\/p>\n<p>[objc]override init() {<br \/>\n  super.init()<br \/>\n  self.locale = NSLocale.currentLocale()<br \/>\n  self.maximumFractionDigits = 10<br \/>\n  self.notNumberSymbol = &quot;Error&quot;<br \/>\n  self.groupingSeparator = &quot; &quot;<br \/>\n  self.numberStyle = .DecimalStyle<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <strong>Singleton<\/strong>: \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 Swift 1.2 \u0438 \u0432\u044b\u0448\u0435, \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 Swift \u043d\u0438\u0436\u0435 1.2. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 <strong>\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u043e\u0433\u043e <em><span style=\"color: #ff0000;\">\u0442\u0438\u043f\u0430<\/span><\/em><\/strong>, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f <strong>class.<\/strong>\u00a0\u0422\u0430\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b \u0432 Swift 1.2.<\/p>\n<h2>\u00a0<strong>Singleton<\/strong>\u00a0\u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432\u00a0\u0432\u0435\u0440\u0441\u0438\u0438 Swift 1.2 \u0438 \u0432\u044b\u0448\u0435<\/h2>\n<p>\u0412<strong style=\"font-style: italic;\"> Swift 1.2<\/strong> \u0438\u043b\u0438 \u0432\u044b\u0448\u0435 \u0432\u0430\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0432 <strong>\u043a\u043b\u0430\u0441\u0441\u0430\u0445<\/strong>\u00a0\u201c<strong>static<\/strong>\u201d \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (\u043a\u0430\u043a \u0430\u043b\u0438\u0430\u0441\u044b \u0434\u043b\u044f\u00a0\u201c<strong>class final<\/strong>\u201d). \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435\u00a0\u00a0<strong>static<\/strong> \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (<strong>static stored properties<\/strong> ) \u0432 <strong>\u043a\u043b\u0430\u0441\u0441\u0430\u0445<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0438\u00a0<strong>lazy<\/strong> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044e (\u043a\u0430\u043a \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435). \u042d\u0442\u043e \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435\u00a0\u00a0\u201c<strong>static<\/strong>\u201d \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <em><strong><span style=\"color: #ff0000;\">\u0442\u0438\u043f\u0430<\/span><\/strong><\/em>\u00a0(\u044d\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438 <em><strong>Swift<\/strong><\/em>, \u0430 \u0435\u0441\u043b\u0438 \u043f\u043e-\u0441\u0442\u0430\u0440\u043e\u043c\u0443, \u043c\u044b \u0431\u044b \u0441\u043a\u0430\u0437\u0430\u043b\u0438 <strong>\u043a\u043b\u0430\u0441\u0441\u0430<\/strong>). \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 &#171;<strong>let<\/strong>&#187; \u00a0\u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 &#171;<strong>var<\/strong>&#171;.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <strong>Singleton<\/strong>\u00a0\u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>static \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e<\/strong><strong>\u00a0<em><span style=\"color: #ff0000;\">\u0442\u0438\u043f\u0430<\/span>\u00a0<\/em>\u043a\u0430\u043a \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443<\/strong>\u00a0(<strong><a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/Swift\/Conceptual\/Swift_Programming_Language\/Properties.html#\/\/apple_ref\/doc\/uid\/TP40014097-CH14-ID264\">type constant property<\/a>)<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u201c<strong><span style=\"color: #0000ff;\">static let<\/span><\/strong>\u201d. \u041d\u0430\u0437\u043e\u0432\u0435\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 <strong><span style=\"color: #0000ff;\">sharedInstance<\/span><\/strong> \u0438 \u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0435\u0435 \u043a\u0430\u043a \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430\u00a0<span style=\"color: #0000ff;\"><b>CalculatorFormatter<\/b><\/span>\u00a0.<\/p>\n<p>[objc]static let sharedInstance = CalculatorFormatter()<br \/>\n[\/objc]<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448 <strong>Singleton<\/strong> \u0433\u043e\u0442\u043e\u0432 &#8212; \u043e\u043d \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f\u00a0<em><strong>Swift<\/strong>\u00a0<strong>1.2 \u0438 \u0432\u044b\u0448\u0435<\/strong><\/em>, \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <strong>static<\/strong>\u00a0<strong>\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <em><span style=\"color: #ff0000;\">\u0442\u0438\u043f\u0430<\/span><\/em><\/strong><em><span style=\"color: #ff0000;\">\u00a0<\/span><\/em>.<\/p>\n<p>[objc]import Foundation<\/p>\n<p>class CalculatorFormatter: NSNumberFormatter {<br \/>\n  required init(coder aDecoder: NSCoder) {<br \/>\n    super.init(coder: aDecoder)<br \/>\n  }<\/p>\n<p>  override init() {<br \/>\n    super.init()<br \/>\n    self.locale = NSLocale.currentLocale()<br \/>\n    self.maximumFractionDigits = 10<br \/>\n    self.notNumberSymbol = &quot;Error&quot;<br \/>\n    self.groupingSeparator = &quot; &quot;<br \/>\n    self.numberStyle = .DecimalStyle<br \/>\n  }<\/p>\n<p>  \/\/ Swift 1.2 or above<br \/>\n  static let sharedInstance = CalculatorFormatter()<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u041d\u0430 <strong>Playground<\/strong> \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u0434\u0432\u0430\u0436\u0434\u044b <strong><span style=\"color: #0000ff;\">CalculatorFormatter.sharedInstance<\/span><\/strong>, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u00a0<span style=\"color: #0000ff;\"><b>Calc\u0443latorformatter<\/b><\/span>. \u0414\u0430\u043b\u0435\u0435 \u00a0\u0432\u044b\u0437\u043e\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <strong><span style=\"color: #0000ff;\">stringFromNumber\u00a0<\/span><\/strong>\u0443 <strong>\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u0430<\/strong> <strong><span style=\"color: #0000ff;\">sharedInstance<\/span><\/strong>\u00a0\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0435\u043c\u0443 \u0447\u0438\u0441\u043b\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<strong>20.00<\/strong>.\u00a0\u00a0\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<strong><span style=\"color: #0000ff;\">??<\/span><\/strong>, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#171;<strong>20<\/strong>&#187; \u0447\u0438\u0441\u043b\u0430\u00a0<strong>20.00<\/strong>.\u00a0\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0447\u0438\u0441\u043b\u043e\u00a0<strong>55550.00<\/strong>\u00a0\u0438\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#171;<b>55 550<\/b>&#187; \u0447\u0438\u0441\u043b\u0430\u00a0<strong>55550.00<\/strong>. \u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0448\u00a0\u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0443\u043b\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0431\u0435\u043b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u0433\u0440\u0443\u043f\u043f \u0446\u0438\u0444\u0440. \u042d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e.<br \/>\n<a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1894 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM.png\" alt=\"Screen Shot 2015-04-17 at 8.48.26 PM\" width=\"1112\" height=\"468\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM.png 1112w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM-300x126.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM-1024x431.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM-500x210.png 500w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/a><\/p>\n<h2>Singleton \u00a0\u0432 \u0432\u0438\u0434\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/h2>\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0443\u0442\u044c &#8212; \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b. \u00a0Apple \u00a0<em><strong><a href=\"https:\/\/developer.apple.com\/library\/prerelease\/ios\/documentation\/Swift\/Conceptual\/Swift_Programming_Language\/Properties.html\">\u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442<\/a><\/strong><\/em><\/p>\n<blockquote><p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 (lazy) \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (<strong><a href=\"https:\/\/developer.apple.com\/library\/prerelease\/ios\/documentation\/Swift\/Conceptual\/Swift_Programming_Language\/Properties.html\">Lazy Stored Properties<\/a><\/strong>). \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435 \u043d\u0443\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0435 lazy \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c.<\/p><\/blockquote>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 &#171;\u0437\u0430 \u0441\u0446\u0435\u043d\u043e\u0439&#187; &#8216;<strong>dispatch_once<\/strong>&#8216; . \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <strong>\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u0430<\/strong><\/p>\n<p>[objc]<br \/>\nlet formatter = CalculatorFormatter()<br \/>\n[\/objc]<\/p>\n<h2>\u00a0\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435 CalculatorBrain \u0432 \u0417\u0430\u0434\u0430\u043d\u0438\u0438 2.<\/h2>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430<strong>\u00a0CalculatorBrain.swift<\/strong> \u043a\u043b\u0430\u0441\u0441\u00a0<strong><span style=\"color: #0000ff;\">CalculatorFormatter<\/span><\/strong>.<br \/>\n<a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-5.19.33-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1880 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-5.19.33-PM.png\" alt=\"Screen Shot 2015-04-17 at 5.19.33 PM\" width=\"920\" height=\"842\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-5.19.33-PM.png 920w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-5.19.33-PM-300x275.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-5.19.33-PM-328x300.png 328w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/a><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <strong>CalculatorBrain.swift \u00a0<\/strong>\u0438 \u0432\u00a0<strong>ViewController.swift <\/strong>\u043f\u043e\u0434\u043e\u0431\u043d\u043e \u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f 1-\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <strong>\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u0430<\/strong> \u0432 Swift 1.2)<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1881 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM.png\" alt=\"Screen Shot 2015-04-17 at 6.07.09 PM\" width=\"1190\" height=\"466\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM.png 1190w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM-300x117.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM-1024x401.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.07.09-PM-500x196.png 500w\" sizes=\"auto, (max-width: 1190px) 100vw, 1190px\" \/><\/a><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b <strong>CalculatorBrainTests.swift<\/strong> \u0442\u0435\u0441\u0442\u044b\u00a0\u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e <strong>Singleton<\/strong><span style=\"color: #0000ff;\">, <span style=\"color: #000000;\">\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430<\/span><\/span><span style=\"color: #000000;\"><strong>\u00a0<span style=\"color: #0000ff;\">CalculatorFormatter<\/span><\/strong>, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u0432 \u043a\u0430\u043a\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1886 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM.png\" alt=\"Screen Shot 2015-04-17 at 6.30.42 PM\" width=\"1126\" height=\"924\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM.png 1126w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM-300x246.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM-1024x840.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-6.30.42-PM-366x300.png 366w\" sizes=\"auto, (max-width: 1126px) 100vw, 1126px\" \/><\/a><\/p>\n<p>\u041a\u043e\u0434 \u0434\u043b\u044f <strong><span style=\"color: #0000ff;\">CalculatorBrain<\/span><\/strong> \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 <strong>Playground<\/strong> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <strong><a href=\"https:\/\/github.com\/BestKora\/CalculatorBrain-cs193p-2015-2\/tree\/Assignment2Singleton\">GitHub<\/a><\/strong>.<\/p>\n<p>\u041a\u043e\u0434 \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <strong>Singleton\u00a0<\/strong>\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0<strong><a href=\"https:\/\/github.com\/BestKora\/CalculatorBrain-cs193p-2015-2\/tree\/Assignment2SingletonGlobal\">GitHub<\/a><\/strong>.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/p>\n<p><strong><a href=\"http:\/\/adamdelong.com\/how-to-create-a-nsnumberformatter-singleton-in-swift\/\">How to Create NSNumberFormatter Singleton in Swift.<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/nshipster.com\/nsformatter\/\">NSFormatter<\/a><\/strong><\/p>\n<p><strong><a href=\"https:\/\/github.com\/hpique\/SwiftSingleton\">Swift Singleton<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n<div id=\"ad-swift-ruby\" class=\"ad-swift-ruby-signup\">\n<form id=\"mc-embedded-subscribe-form\" class=\"validate\" action=\"http:\/\/adamdelong.us5.list-manage.com\/subscribe\/post?u=1ef9e283f6c407bd5f1aebd0e&amp;id=8da150ee0f\" method=\"post\" name=\"mc-embedded-subscribe-form\" novalidate=\"\" target=\"_blank\">\n<div id=\"mc_embed_signup_scroll\"><\/div>\n<\/form>\n<\/div>\n<p><strong style=\"color: #333333; font-style: normal; line-height: 24px;\">\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 NSNumberFormatter \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 \u00a0\u043c\u043e\u0435\u043c \u00a0CalculatorBrain \u0432 \u0417\u0430\u0434\u0430\u043d\u0438\u0438 2 \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &#171;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Swift. Winter 2015&#187;, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 2324.00 \u043d\u0430 2 324 \u0431\u0435\u0437 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c\u0443 &hellip; <a href=\"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,14],"tags":[31,30,26],"class_list":["post-1875","post","type-post","status-publish","format-standard","hentry","category-ios-8","category-stanford-cs-193p-ios-8","category-swift","tag-swift","tag-domashnee-zadanie","tag-zadanie-ios-8"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"tatiana.kornilova@gmail.com\"\/>\n\t<meta name=\"keywords\" content=\"ios 8,swift,stanford cs 193p,xcode 6,\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438,\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 ios,ios programming,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 ios 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,stanford,popover,popover delegate,\u0440\u0430\u0437\u043c\u0435\u0440 popover,ios 8.3,singleton,swift 1.2,\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d,nsnumberformatter\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. | \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 &quot; \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439&quot; 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-04-16T13:27:12+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-08-24T16:32:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#article\",\"name\":\"NSNumberFormatter Singleton \\u0432 Swift 1.2 \\u0438 1.1 | \\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"headline\":\"\\u041a\\u0430\\u043a \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c NSNumberFormatter Singleton \\u0432 Swift (1.2  \\u0438 1.1) &#8212;  \\u0434\\u043e\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u0438\\u0435 \\u043a \\u0417\\u0430\\u0434\\u0430\\u043d\\u0438\\u044e 2\",\"author\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/Screen-Shot-2015-04-17-at-8.48.26-PM.png\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#articleImage\",\"width\":1112,\"height\":468},\"datePublished\":\"2015-04-16T13:27:12+00:00\",\"dateModified\":\"2015-08-24T16:32:42+00:00\",\"inLanguage\":\"ru-RU\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#webpage\"},\"articleSection\":\"iOS 8, Stanford CS 193P iOS 8, Swift, Swift, \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435, \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 iOS 8\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"name\":\"Swift\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"position\":2,\"name\":\"Swift\",\"item\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#listItem\",\"name\":\"\\u041a\\u0430\\u043a \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c NSNumberFormatter Singleton \\u0432 Swift (1.2  \\u0438 1.1) &#8212;  \\u0434\\u043e\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u0438\\u0435 \\u043a \\u0417\\u0430\\u0434\\u0430\\u043d\\u0438\\u044e 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#listItem\",\"position\":3,\"name\":\"\\u041a\\u0430\\u043a \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c NSNumberFormatter Singleton \\u0432 Swift (1.2  \\u0438 1.1) &#8212;  \\u0434\\u043e\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u0438\\u0435 \\u043a \\u0417\\u0430\\u0434\\u0430\\u043d\\u0438\\u044e 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"name\":\"Swift\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\",\"name\":\"tatiana.kornilova@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"tatiana.kornilova@gmail.com\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/\",\"name\":\"tatiana.kornilova@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"tatiana.kornilova@gmail.com\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#webpage\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/\",\"name\":\"NSNumberFormatter Singleton \\u0432 Swift 1.2 \\u0438 1.1 | \\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"description\":\"\\u0421\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u0435 NSNumberFormatter Singleton \\u0432 Swift (1.2 \\u0438 1.1) \\u0434\\u043b\\u044f \\u0417\\u0430\\u0434\\u0430\\u043d\\u0438\\u044f 2 CS193P \\u0441\\u0442\\u044d\\u043d\\u0444\\u043e\\u0440\\u0434\\u0441\\u043a\\u043e\\u0433\\u043e \\u043a\\u0443\\u0440\\u0441\\u0430 \\\"\\u0420\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0430 iOS 8 \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439 \\u0441 Swift.\\\"\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/kak-sozdat-nsnumberformatter-singleton-v-swift\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"datePublished\":\"2015-04-16T13:27:12+00:00\",\"dateModified\":\"2015-08-24T16:32:42+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#website\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/\",\"name\":\"\\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"description\":\"\\u0420\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u043d\\u0435\\u0430\\u0432\\u0442\\u043e\\u0440\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043a\\u043e\\u043d\\u0441\\u043f\\u0435\\u043a\\u0442 \\u043b\\u0435\\u043a\\u0446\\u0438\\u0439 \\u0421\\u0442\\u044d\\u043d\\u0444\\u043e\\u0440\\u0434\\u0441\\u043a\\u043e\\u0433\\u043e \\u0443\\u043d\\u0438\\u0432\\u0435\\u0440\\u0441\\u0438\\u0442\\u0435\\u0442\\u0430 \\\" \\u0420\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0430 iOS \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439\\\" 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \\u0438 2026 \\u0433\\u0433., \\u0441\\u043e\\u043f\\u0440\\u043e\\u0432\\u043e\\u0436\\u0434\\u0430\\u0435\\u043c\\u044b\\u0439 \\u0440\\u0435\\u0448\\u0435\\u043d\\u0438\\u044f\\u043c\\u0438 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0439 \\u0438 \\u0434\\u043e\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u0438\\u044f\\u043c\\u0438, \\u0441\\u0432\\u044f\\u0437\\u0430\\u043d\\u043d\\u044b\\u043c\\u0438 \\u0441 \\u0430\\u0434\\u0430\\u043f\\u0442\\u0430\\u0446\\u0438\\u0435\\u0439 \\u043a\\u0443\\u0440\\u0441\\u043e\\u0432 \\u043a \\u043d\\u043e\\u0432\\u044b\\u043c \\u0432\\u0435\\u0440\\u0441\\u0438\\u044f\\u043c Swift, Objective-C \\u0438 iOS.\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.\"","canonical_url":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"ios 8,swift,stanford cs 193p,xcode 6,\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438,\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 ios,ios programming,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 ios 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,stanford,popover,popover delegate,\u0440\u0430\u0437\u043c\u0435\u0440 popover,ios 8.3,singleton,swift 1.2,\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d,nsnumberformatter","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#article","name":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","headline":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) &#8212;  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2","author":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"publisher":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-17-at-8.48.26-PM.png","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#articleImage","width":1112,"height":468},"datePublished":"2015-04-16T13:27:12+00:00","dateModified":"2015-08-24T16:32:42+00:00","inLanguage":"ru-RU","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#webpage"},"isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#webpage"},"articleSection":"iOS 8, Stanford CS 193P iOS 8, Swift, Swift, \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435, \u0437\u0430\u0434\u0430\u043d\u0438\u0435 iOS 8"},{"@type":"BreadcrumbList","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper#listItem","position":1,"name":"Home","item":"https:\/\/bestkora.com\/IosDeveloper","nextItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","name":"Swift"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","position":2,"name":"Swift","item":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#listItem","name":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) &#8212;  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#listItem","position":3,"name":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) &#8212;  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2","previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","name":"Swift"}}]},{"@type":"Person","@id":"https:\/\/bestkora.com\/IosDeveloper\/#person","name":"tatiana.kornilova@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g","width":96,"height":96,"caption":"tatiana.kornilova@gmail.com"}},{"@type":"Person","@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author","url":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/","name":"tatiana.kornilova@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g","width":96,"height":96,"caption":"tatiana.kornilova@gmail.com"}},{"@type":"WebPage","@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#webpage","url":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/","name":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.\"","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#website"},"breadcrumb":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/#breadcrumblist"},"author":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"creator":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"datePublished":"2015-04-16T13:27:12+00:00","dateModified":"2015-08-24T16:32:42+00:00"},{"@type":"WebSite","@id":"https:\/\/bestkora.com\/IosDeveloper\/#website","url":"https:\/\/bestkora.com\/IosDeveloper\/","name":"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 \" \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439\" 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#person"}}]},"og:locale":"ru_RU","og:site_name":"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. | \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 &quot; \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439&quot; 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.","og:type":"article","og:title":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","og:description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;","og:url":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/","article:published_time":"2015-04-16T13:27:12+00:00","article:modified_time":"2015-08-24T16:32:42+00:00","twitter:card":"summary","twitter:title":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","twitter:description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1) \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;"},"aioseo_meta_data":{"post_id":"1875","title":"NSNumberFormatter Singleton \u0432 Swift 1.2 \u0438 1.1 | #site_title","description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 NSNumberFormatter Singleton \u0432 Swift (1.2 \u0438 1.1)  \u0434\u043b\u044f \u0417\u0430\u0434\u0430\u043d\u0438\u044f 2 CS193P \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 &quot;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift.&quot;","keywords":[{"label":"iOS 8","value":"iOS 8"},{"label":"Swift","value":"Swift"},{"label":"Stanford CS 193P","value":"Stanford CS 193P"},{"label":"Xcode 6","value":"Xcode 6"},{"label":"\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438","value":"\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438"},{"label":"\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 iOS","value":"\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 iOS"},{"label":"iOS programming","value":"iOS programming"},{"label":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439","value":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439"},{"label":"stanford","value":"stanford"},{"label":"Popover","value":"Popover"},{"label":"Popover delegate","value":"Popover delegate"},{"label":"\u0440\u0430\u0437\u043c\u0435\u0440 Popover","value":"\u0440\u0430\u0437\u043c\u0435\u0440 Popover"},{"label":"iOS 8.3","value":"iOS 8.3"},{"label":"Singleton","value":"Singleton"},{"label":"Swift 1.2","value":"Swift 1.2"},{"label":"\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d","value":"\u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d"},{"label":"NSNumberFormatter","value":"NSNumberFormatter"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 06:31:52","updated":"2026-02-22 19:47:53","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bestkora.com\/IosDeveloper\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/\" title=\"Swift\">Swift<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) \u2014  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/bestkora.com\/IosDeveloper"},{"label":"Swift","link":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/"},{"label":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c NSNumberFormatter Singleton \u0432 Swift (1.2  \u0438 1.1) &#8212;  \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0417\u0430\u0434\u0430\u043d\u0438\u044e 2","link":"https:\/\/bestkora.com\/IosDeveloper\/kak-sozdat-nsnumberformatter-singleton-v-swift\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/comments?post=1875"}],"version-history":[{"count":25,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1875\/revisions"}],"predecessor-version":[{"id":2785,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1875\/revisions\/2785"}],"wp:attachment":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/media?parent=1875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/categories?post=1875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/tags?post=1875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}