{"id":983,"date":"2021-03-15T15:04:21","date_gmt":"2021-03-15T07:04:21","guid":{"rendered":"http:\/\/www.mustenaka.cn\/?p=983"},"modified":"2021-03-15T16:35:16","modified_gmt":"2021-03-15T08:35:16","slug":"foundationframeworkmoduledetailedstudynotes","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/15\/foundationframeworkmoduledetailedstudynotes\/","title":{"rendered":"OC &#8211; Foundation\u6a21\u5757\u8be6\u7ec6\u5b66\u4e60\u7b14\u8bb0"},"content":{"rendered":"<p>\u8fd9\u662f\u4e00\u4e2aFoundation\u8be6\u7ec6\u6a21\u5757\u7684\u7b14\u8bb0\u7684\u6c47\u603b\uff0c\u4e3b\u8981\u53c2\u8003\u6765\u6e90\u4e3a\u5728\u516c\u53f8\u770b\u7684\u4e66\u300aObjective-C\u7f16\u7a0b\u5168\u89e3\u300b\u3002<\/p>\n<hr \/>\n<p>OC\u4e2d\u7684\u7c7b\u5206\u4e3a\u53ef\u53d8(mutable)\u7c7b\u548c\u4e0d\u53ef\u53d8(immutable)\u7c7b\u3002\u53ef\u53d8\u7c7b\u7684\u5b9e\u4f8b\u5bf9\u8c61\u79f0\u4e3a\u53ef\u53d8\u5bf9\u8c61\uff0c\u6307\u7684\u662f\u521b\u5efa\u540e\u80fd\u591f\u6539\u53d8\u5176\u5185\u5bb9\u6216\u72b6\u6001\u7684\u5bf9\u8c61\u3002\u4e0d\u53ef\u53d8\u7c7b\u7684\u5b9e\u4f8b\u5bf9\u8c61\u79f0\u4e3a\u4e0d\u53ef\u53d8\u5bf9\u8c61\uff0c\u6307\u7684\u662f\u521b\u5efa\u540e\u4e0d\u53ef\u66f4\u6539\u5176\u5185\u5bb9\u7684\u5bf9\u8c61\u3002\u5bf9\u8c61\u662f\u5426\u53ef\u53d8\u7684\u5c5e\u6027\u79f0\u4e4b\u4e3a\u53ef\u53d8\u6027(mutability)\u3002<\/p>\n<p>\u5176\u5305\u540d\u53ef\u4ee5\u53c2\u8003\u5982\u4e0b\u8868\u683c<\/p>\n<div id=\"supsystic-table-18_1550\" class=\"supsystic-tables-wrap \" style=\" width:100%; \" data-table-width-fixed=\"100%\" data-table-width-mobile=\"100%\" ><table id=\"supsystic-table-18\" class=\"supsystic-table border lightboxImg cell-border\" data-id=\"18\" data-view-id=\"18_1550\" data-title=\"OC - \u53ef\u53d8\u4e0e\u4e0d\u53ef\u53d8\u5bf9\u8c61\u8868\" data-currency-format=\"$1,000.00\" data-percent-format=\"10.00%\" data-date-format=\"DD.MM.YYYY\" data-time-format=\"HH:mm\" data-features=\"[&quot;after_table_loaded_script&quot;]\" data-search-value=\"\" data-lightbox-img=\"\" data-head-rows-count=\"1\" data-pagination-length=\"50,100,All\" data-auto-index=\"off\" data-searching-settings=\"{&quot;columnSearchPosition&quot;:&quot;bottom&quot;,&quot;minChars&quot;:&quot;0&quot;}\" data-lang=\"default\" data-override=\"{&quot;emptyTable&quot;:&quot;&quot;,&quot;info&quot;:&quot;&quot;,&quot;infoEmpty&quot;:&quot;&quot;,&quot;infoFiltered&quot;:&quot;&quot;,&quot;lengthMenu&quot;:&quot;&quot;,&quot;search&quot;:&quot;&quot;,&quot;zeroRecords&quot;:&quot;&quot;,&quot;exportLabel&quot;:&quot;&quot;,&quot;file&quot;:&quot;default&quot;}\" data-merged=\"[]\" data-responsive-mode=\"0\" data-from-history=\"0\" ><thead><tr><th class=\"\" style=\"width:; padding: 0 !important;\"><\/th><th class=\"\" style=\"width:; padding: 0 !important;\"><\/th><th class=\"\" style=\"width:; padding: 0 !important;\"><\/th><\/tr><\/thead><tbody><tr style=\"height:px\" ><td data-cell-id=\"A1\" data-x=\"0\" data-y=\"1\" data-db-index=\"1\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u79cd\u7c7b\" data-order=\"\u79cd\u7c7b\" style=\"min-width:29.0043%; \" >\u79cd\u7c7b <\/td><td data-cell-id=\"B1\" data-x=\"1\" data-y=\"1\" data-db-index=\"1\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u4e0d\u53ef\u53d8\u7c7b\" data-order=\"\u4e0d\u53ef\u53d8\u7c7b\" style=\"min-width:29.6537%; \" >\u4e0d\u53ef\u53d8\u7c7b <\/td><td data-cell-id=\"C1\" data-x=\"2\" data-y=\"1\" data-db-index=\"1\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u53ef\u53d8\u7c7b\" data-order=\"\u53ef\u53d8\u7c7b\" style=\"min-width:41.342%; \" >\u53ef\u53d8\u7c7b <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A2\" data-x=\"0\" data-y=\"2\" data-db-index=\"2\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u6570\u7ec4\" data-order=\"\u6570\u7ec4\" >\u6570\u7ec4 <\/td><td data-cell-id=\"B2\" data-x=\"1\" data-y=\"2\" data-db-index=\"2\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSArray\" data-order=\"NSArray\" >NSArray <\/td><td data-cell-id=\"C2\" data-x=\"2\" data-y=\"2\" data-db-index=\"2\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableArray\" data-order=\"NSMutableArray\" >NSMutableArray <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A3\" data-x=\"0\" data-y=\"3\" data-db-index=\"3\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u6570\u636e\" data-order=\"\u6570\u636e\" >\u6570\u636e <\/td><td data-cell-id=\"B3\" data-x=\"1\" data-y=\"3\" data-db-index=\"3\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSData\" data-order=\"NSData\" >NSData <\/td><td data-cell-id=\"C3\" data-x=\"2\" data-y=\"3\" data-db-index=\"3\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableData\" data-order=\"NSMutableData\" >NSMutableData <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A4\" data-x=\"0\" data-y=\"4\" data-db-index=\"4\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u8bcd\u5178\" data-order=\"\u8bcd\u5178\" >\u8bcd\u5178 <\/td><td data-cell-id=\"B4\" data-x=\"1\" data-y=\"4\" data-db-index=\"4\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSDictionary\" data-order=\"NSDictionary\" >NSDictionary <\/td><td data-cell-id=\"C4\" data-x=\"2\" data-y=\"4\" data-db-index=\"4\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableDictionary\" data-order=\"NSMutableDictionary\" >NSMutableDictionary <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A5\" data-x=\"0\" data-y=\"5\" data-db-index=\"5\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u96c6\u5408\" data-order=\"\u96c6\u5408\" >\u96c6\u5408 <\/td><td data-cell-id=\"B5\" data-x=\"1\" data-y=\"5\" data-db-index=\"5\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSSet\" data-order=\"NSSet\" >NSSet <\/td><td data-cell-id=\"C5\" data-x=\"2\" data-y=\"5\" data-db-index=\"5\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableSet\" data-order=\"NSMutableSet\" >NSMutableSet <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A6\" data-x=\"0\" data-y=\"6\" data-db-index=\"6\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u5b57\u7b26\u4e32\" data-order=\"\u5b57\u7b26\u4e32\" >\u5b57\u7b26\u4e32 <\/td><td data-cell-id=\"B6\" data-x=\"1\" data-y=\"6\" data-db-index=\"6\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSString\" data-order=\"NSString\" >NSString <\/td><td data-cell-id=\"C6\" data-x=\"2\" data-y=\"6\" data-db-index=\"6\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableString\" data-order=\"NSMutableString\" >NSMutableString <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A7\" data-x=\"0\" data-y=\"7\" data-db-index=\"7\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u5e26\u5c5e\u6027\u7684\u5b57\u7b26\u4e32\" data-order=\"\u5e26\u5c5e\u6027\u7684\u5b57\u7b26\u4e32\" >\u5e26\u5c5e\u6027\u7684\u5b57\u7b26\u4e32 <\/td><td data-cell-id=\"B7\" data-x=\"1\" data-y=\"7\" data-db-index=\"7\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSAttributedString\" data-order=\"NSAttributedString\" >NSAttributedString <\/td><td data-cell-id=\"C7\" data-x=\"2\" data-y=\"7\" data-db-index=\"7\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableAttributedString\" data-order=\"NSMutableAttributedString\" >NSMutableAttributedString <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A8\" data-x=\"0\" data-y=\"8\" data-db-index=\"8\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u5b57\u7b26\u96c6\u5408\" data-order=\"\u5b57\u7b26\u96c6\u5408\" >\u5b57\u7b26\u96c6\u5408 <\/td><td data-cell-id=\"B8\" data-x=\"1\" data-y=\"8\" data-db-index=\"8\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSCharacterSet\" data-order=\"NSCharacterSet\" >NSCharacterSet <\/td><td data-cell-id=\"C8\" data-x=\"2\" data-y=\"8\" data-db-index=\"8\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableCharacterSet\" data-order=\"NSMutableCharacterSet\" >NSMutableCharacterSet <\/td><\/tr><tr style=\"height:px\" ><td data-cell-id=\"A9\" data-x=\"0\" data-y=\"9\" data-db-index=\"9\" class=\"\" data-cell-type=\"text\" data-original-value=\"\u7d22\u5f15\u96c6\u5408\" data-order=\"\u7d22\u5f15\u96c6\u5408\" >\u7d22\u5f15\u96c6\u5408 <\/td><td data-cell-id=\"B9\" data-x=\"1\" data-y=\"9\" data-db-index=\"9\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSIndexSet\" data-order=\"NSIndexSet\" >NSIndexSet <\/td><td data-cell-id=\"C9\" data-x=\"2\" data-y=\"9\" data-db-index=\"9\" class=\"\" data-cell-type=\"text\" data-original-value=\"NSMutableIndexSet\" data-order=\"NSMutableIndexSet\" >NSMutableIndexSet <\/td><\/tr><\/tbody><\/table><!-- \/#supsystic-table-18.supsystic-table --><\/div><!-- \/.supsystic-tables-wrap --><!-- Tables Generator by Supsystic --><!-- Version:1.11.0 --><!-- http:\/\/supsystic.com\/ --><a title=\"Table Plugin\" style=\"display:none;\" href=\"https:\/\/supsystic.com\/plugins\/wordpress-data-table-plugin\/?utm_medium=love_link\" target=\"_blank\">Table Plugin<\/a>\n<h3>1.NSString<\/h3>\n<blockquote class=\"wp-embedded-content\" data-secret=\"hbegLAs4YQ\"><p><a href=\"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/15\/oc-nsstring-introducensstring\/\">OC &#8211; NSString \u5b57\u7b26\u4e32\u7c7b\u8be6\u89e3<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300aOC &#8211; NSString \u5b57\u7b26\u4e32\u7c7b\u8be6\u89e3\u300b\u2014\u6728\u5341\u7684\u535a\u5ba2\" src=\"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/15\/oc-nsstring-introducensstring\/embed\/#?secret=hbegLAs4YQ\" data-secret=\"hbegLAs4YQ\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>2.NSData<\/h3>\n<blockquote class=\"wp-embedded-content\" data-secret=\"8pqc689PXo\"><p><a href=\"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/15\/oc-nsdata-introducensnsdata\/\">OC &#8211; NSData \u7c7b\u8be6\u89e3<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300aOC &#8211; NSData \u7c7b\u8be6\u89e3\u300b\u2014\u6728\u5341\u7684\u535a\u5ba2\" src=\"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/15\/oc-nsdata-introducensnsdata\/embed\/#?secret=8pqc689PXo\" data-secret=\"8pqc689PXo\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u4e00\u4e2aFoundation\u8be6\u7ec6\u6a21\u5757\u7684\u7b14\u8bb0\u7684\u6c47\u603b\uff0c\u4e3b\u8981\u53c2\u8003\u6765\u6e90\u4e3a\u5728\u516c\u53f8\u770b\u7684\u4e66\u300aObjective-C [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,88],"tags":[87,89],"class_list":["post-983","post","type-post","status-publish","format-standard","hentry","category-macos","category-objective-c","tag-macos","tag-objective-c"],"views":1385,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=983"}],"version-history":[{"count":5,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/983\/revisions"}],"predecessor-version":[{"id":993,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/983\/revisions\/993"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}