Skip to content

Commit c5680cc

Browse files
committed
完善21题,并给出示例代码的详细解释
1 parent c40252e commit c5680cc

File tree

68 files changed

+986
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+986
-292
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
9A9420F21BB5A3CB005C8F29 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A9420E81BB5A3CB005C8F29 /* AppDelegate.m */; settings = {ASSET_TAGS = (); }; };
11+
9A9420F31BB5A3CB005C8F29 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9A9420E91BB5A3CB005C8F29 /* Assets.xcassets */; settings = {ASSET_TAGS = (); }; };
12+
9A9420F41BB5A3CB005C8F29 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9A9420EA1BB5A3CB005C8F29 /* LaunchScreen.storyboard */; settings = {ASSET_TAGS = (); }; };
13+
9A9420F51BB5A3CB005C8F29 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9A9420EC1BB5A3CB005C8F29 /* Main.storyboard */; settings = {ASSET_TAGS = (); }; };
14+
9A9420F61BB5A3CB005C8F29 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9A9420EE1BB5A3CB005C8F29 /* Info.plist */; settings = {ASSET_TAGS = (); }; };
15+
9A9420F71BB5A3CB005C8F29 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A9420EF1BB5A3CB005C8F29 /* main.m */; settings = {ASSET_TAGS = (); }; };
16+
9A9420F81BB5A3CB005C8F29 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A9420F11BB5A3CB005C8F29 /* ViewController.m */; settings = {ASSET_TAGS = (); }; };
17+
/* End PBXBuildFile section */
18+
19+
/* Begin PBXFileReference section */
20+
9A9420CC1BB58F17005C8F29 /* CYLArrayCopyDmo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CYLArrayCopyDmo.app; sourceTree = BUILT_PRODUCTS_DIR; };
21+
9A9420E71BB5A3CB005C8F29 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
22+
9A9420E81BB5A3CB005C8F29 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
23+
9A9420E91BB5A3CB005C8F29 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
24+
9A9420EB1BB5A3CB005C8F29 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
25+
9A9420ED1BB5A3CB005C8F29 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
26+
9A9420EE1BB5A3CB005C8F29 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
27+
9A9420EF1BB5A3CB005C8F29 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
28+
9A9420F01BB5A3CB005C8F29 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
29+
9A9420F11BB5A3CB005C8F29 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
9A9420C91BB58F17005C8F29 /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
);
38+
runOnlyForDeploymentPostprocessing = 0;
39+
};
40+
/* End PBXFrameworksBuildPhase section */
41+
42+
/* Begin PBXGroup section */
43+
9A9420C31BB58F17005C8F29 = {
44+
isa = PBXGroup;
45+
children = (
46+
9A9420E61BB5A3CB005C8F29 /* CYLArrayCopyDmo */,
47+
9A9420CD1BB58F17005C8F29 /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
9A9420CD1BB58F17005C8F29 /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
9A9420CC1BB58F17005C8F29 /* CYLArrayCopyDmo.app */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
9A9420E61BB5A3CB005C8F29 /* CYLArrayCopyDmo */ = {
60+
isa = PBXGroup;
61+
children = (
62+
9A9420E71BB5A3CB005C8F29 /* AppDelegate.h */,
63+
9A9420E81BB5A3CB005C8F29 /* AppDelegate.m */,
64+
9A9420E91BB5A3CB005C8F29 /* Assets.xcassets */,
65+
9A9420EA1BB5A3CB005C8F29 /* LaunchScreen.storyboard */,
66+
9A9420EC1BB5A3CB005C8F29 /* Main.storyboard */,
67+
9A9420EE1BB5A3CB005C8F29 /* Info.plist */,
68+
9A9420EF1BB5A3CB005C8F29 /* main.m */,
69+
9A9420F01BB5A3CB005C8F29 /* ViewController.h */,
70+
9A9420F11BB5A3CB005C8F29 /* ViewController.m */,
71+
);
72+
path = CYLArrayCopyDmo;
73+
sourceTree = "<group>";
74+
};
75+
/* End PBXGroup section */
76+
77+
/* Begin PBXNativeTarget section */
78+
9A9420CB1BB58F17005C8F29 /* CYLArrayCopyDmo */ = {
79+
isa = PBXNativeTarget;
80+
buildConfigurationList = 9A9420E31BB58F18005C8F29 /* Build configuration list for PBXNativeTarget "CYLArrayCopyDmo" */;
81+
buildPhases = (
82+
9A9420C81BB58F17005C8F29 /* Sources */,
83+
9A9420C91BB58F17005C8F29 /* Frameworks */,
84+
9A9420CA1BB58F17005C8F29 /* Resources */,
85+
);
86+
buildRules = (
87+
);
88+
dependencies = (
89+
);
90+
name = CYLArrayCopyDmo;
91+
productName = CYLMutableArrayCopyDmo;
92+
productReference = 9A9420CC1BB58F17005C8F29 /* CYLArrayCopyDmo.app */;
93+
productType = "com.apple.product-type.application";
94+
};
95+
/* End PBXNativeTarget section */
96+
97+
/* Begin PBXProject section */
98+
9A9420C41BB58F17005C8F29 /* Project object */ = {
99+
isa = PBXProject;
100+
attributes = {
101+
LastUpgradeCheck = 0700;
102+
ORGANIZATIONNAME = "http://weibo.com/luohanchenyilong/ 微博@iOS程序犭袁";
103+
TargetAttributes = {
104+
9A9420CB1BB58F17005C8F29 = {
105+
CreatedOnToolsVersion = 7.0;
106+
};
107+
};
108+
};
109+
buildConfigurationList = 9A9420C71BB58F17005C8F29 /* Build configuration list for PBXProject "CYLArrayCopyDmo" */;
110+
compatibilityVersion = "Xcode 3.2";
111+
developmentRegion = English;
112+
hasScannedForEncodings = 0;
113+
knownRegions = (
114+
en,
115+
Base,
116+
);
117+
mainGroup = 9A9420C31BB58F17005C8F29;
118+
productRefGroup = 9A9420CD1BB58F17005C8F29 /* Products */;
119+
projectDirPath = "";
120+
projectRoot = "";
121+
targets = (
122+
9A9420CB1BB58F17005C8F29 /* CYLArrayCopyDmo */,
123+
);
124+
};
125+
/* End PBXProject section */
126+
127+
/* Begin PBXResourcesBuildPhase section */
128+
9A9420CA1BB58F17005C8F29 /* Resources */ = {
129+
isa = PBXResourcesBuildPhase;
130+
buildActionMask = 2147483647;
131+
files = (
132+
9A9420F61BB5A3CB005C8F29 /* Info.plist in Resources */,
133+
9A9420F51BB5A3CB005C8F29 /* Main.storyboard in Resources */,
134+
9A9420F31BB5A3CB005C8F29 /* Assets.xcassets in Resources */,
135+
9A9420F41BB5A3CB005C8F29 /* LaunchScreen.storyboard in Resources */,
136+
);
137+
runOnlyForDeploymentPostprocessing = 0;
138+
};
139+
/* End PBXResourcesBuildPhase section */
140+
141+
/* Begin PBXSourcesBuildPhase section */
142+
9A9420C81BB58F17005C8F29 /* Sources */ = {
143+
isa = PBXSourcesBuildPhase;
144+
buildActionMask = 2147483647;
145+
files = (
146+
9A9420F81BB5A3CB005C8F29 /* ViewController.m in Sources */,
147+
9A9420F71BB5A3CB005C8F29 /* main.m in Sources */,
148+
9A9420F21BB5A3CB005C8F29 /* AppDelegate.m in Sources */,
149+
);
150+
runOnlyForDeploymentPostprocessing = 0;
151+
};
152+
/* End PBXSourcesBuildPhase section */
153+
154+
/* Begin PBXVariantGroup section */
155+
9A9420EA1BB5A3CB005C8F29 /* LaunchScreen.storyboard */ = {
156+
isa = PBXVariantGroup;
157+
children = (
158+
9A9420EB1BB5A3CB005C8F29 /* Base */,
159+
);
160+
name = LaunchScreen.storyboard;
161+
sourceTree = "<group>";
162+
};
163+
9A9420EC1BB5A3CB005C8F29 /* Main.storyboard */ = {
164+
isa = PBXVariantGroup;
165+
children = (
166+
9A9420ED1BB5A3CB005C8F29 /* Base */,
167+
);
168+
name = Main.storyboard;
169+
sourceTree = "<group>";
170+
};
171+
/* End PBXVariantGroup section */
172+
173+
/* Begin XCBuildConfiguration section */
174+
9A9420E11BB58F18005C8F29 /* Debug */ = {
175+
isa = XCBuildConfiguration;
176+
buildSettings = {
177+
ALWAYS_SEARCH_USER_PATHS = NO;
178+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
179+
CLANG_CXX_LIBRARY = "libc++";
180+
CLANG_ENABLE_MODULES = YES;
181+
CLANG_ENABLE_OBJC_ARC = YES;
182+
CLANG_WARN_BOOL_CONVERSION = YES;
183+
CLANG_WARN_CONSTANT_CONVERSION = YES;
184+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
185+
CLANG_WARN_EMPTY_BODY = YES;
186+
CLANG_WARN_ENUM_CONVERSION = YES;
187+
CLANG_WARN_INT_CONVERSION = YES;
188+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
189+
CLANG_WARN_UNREACHABLE_CODE = YES;
190+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
191+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
192+
COPY_PHASE_STRIP = NO;
193+
DEBUG_INFORMATION_FORMAT = dwarf;
194+
ENABLE_STRICT_OBJC_MSGSEND = YES;
195+
ENABLE_TESTABILITY = YES;
196+
GCC_C_LANGUAGE_STANDARD = gnu99;
197+
GCC_DYNAMIC_NO_PIC = NO;
198+
GCC_NO_COMMON_BLOCKS = YES;
199+
GCC_OPTIMIZATION_LEVEL = 0;
200+
GCC_PREPROCESSOR_DEFINITIONS = (
201+
"DEBUG=1",
202+
"$(inherited)",
203+
);
204+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
205+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
206+
GCC_WARN_UNDECLARED_SELECTOR = YES;
207+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
208+
GCC_WARN_UNUSED_FUNCTION = YES;
209+
GCC_WARN_UNUSED_VARIABLE = YES;
210+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
211+
MTL_ENABLE_DEBUG_INFO = YES;
212+
ONLY_ACTIVE_ARCH = YES;
213+
SDKROOT = iphoneos;
214+
TARGETED_DEVICE_FAMILY = "1,2";
215+
};
216+
name = Debug;
217+
};
218+
9A9420E21BB58F18005C8F29 /* Release */ = {
219+
isa = XCBuildConfiguration;
220+
buildSettings = {
221+
ALWAYS_SEARCH_USER_PATHS = NO;
222+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
223+
CLANG_CXX_LIBRARY = "libc++";
224+
CLANG_ENABLE_MODULES = YES;
225+
CLANG_ENABLE_OBJC_ARC = YES;
226+
CLANG_WARN_BOOL_CONVERSION = YES;
227+
CLANG_WARN_CONSTANT_CONVERSION = YES;
228+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
229+
CLANG_WARN_EMPTY_BODY = YES;
230+
CLANG_WARN_ENUM_CONVERSION = YES;
231+
CLANG_WARN_INT_CONVERSION = YES;
232+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233+
CLANG_WARN_UNREACHABLE_CODE = YES;
234+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
235+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
236+
COPY_PHASE_STRIP = NO;
237+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
238+
ENABLE_NS_ASSERTIONS = NO;
239+
ENABLE_STRICT_OBJC_MSGSEND = YES;
240+
GCC_C_LANGUAGE_STANDARD = gnu99;
241+
GCC_NO_COMMON_BLOCKS = YES;
242+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
243+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
244+
GCC_WARN_UNDECLARED_SELECTOR = YES;
245+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
246+
GCC_WARN_UNUSED_FUNCTION = YES;
247+
GCC_WARN_UNUSED_VARIABLE = YES;
248+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
249+
MTL_ENABLE_DEBUG_INFO = NO;
250+
SDKROOT = iphoneos;
251+
TARGETED_DEVICE_FAMILY = "1,2";
252+
VALIDATE_PRODUCT = YES;
253+
};
254+
name = Release;
255+
};
256+
9A9420E41BB58F18005C8F29 /* Debug */ = {
257+
isa = XCBuildConfiguration;
258+
buildSettings = {
259+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
260+
INFOPLIST_FILE = CYLArrayCopyDmo/Info.plist;
261+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
262+
PRODUCT_BUNDLE_IDENTIFIER = ChenYilong.CYLMutableArrayCopyDmo;
263+
PRODUCT_NAME = CYLArrayCopyDmo;
264+
};
265+
name = Debug;
266+
};
267+
9A9420E51BB58F18005C8F29 /* Release */ = {
268+
isa = XCBuildConfiguration;
269+
buildSettings = {
270+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
271+
INFOPLIST_FILE = CYLArrayCopyDmo/Info.plist;
272+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
273+
PRODUCT_BUNDLE_IDENTIFIER = ChenYilong.CYLMutableArrayCopyDmo;
274+
PRODUCT_NAME = CYLArrayCopyDmo;
275+
};
276+
name = Release;
277+
};
278+
/* End XCBuildConfiguration section */
279+
280+
/* Begin XCConfigurationList section */
281+
9A9420C71BB58F17005C8F29 /* Build configuration list for PBXProject "CYLArrayCopyDmo" */ = {
282+
isa = XCConfigurationList;
283+
buildConfigurations = (
284+
9A9420E11BB58F18005C8F29 /* Debug */,
285+
9A9420E21BB58F18005C8F29 /* Release */,
286+
);
287+
defaultConfigurationIsVisible = 0;
288+
defaultConfigurationName = Release;
289+
};
290+
9A9420E31BB58F18005C8F29 /* Build configuration list for PBXNativeTarget "CYLArrayCopyDmo" */ = {
291+
isa = XCConfigurationList;
292+
buildConfigurations = (
293+
9A9420E41BB58F18005C8F29 /* Debug */,
294+
9A9420E51BB58F18005C8F29 /* Release */,
295+
);
296+
defaultConfigurationIsVisible = 0;
297+
};
298+
/* End XCConfigurationList section */
299+
};
300+
rootObject = 9A9420C41BB58F17005C8F29 /* Project object */;
301+
}

01《招聘一个靠谱的iOS》面试题参考答案/Demo_13题_用@property声明的NSString或NSArray_NSDictionary_经常使用copy关键字_为什么_如果改用strong关键字_可能造成什么问题/CYLMutableArrayCopyDmo/CYLArrayCopyDmo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>

0 commit comments

Comments
 (0)