Skip to content

Commit e584042

Browse files
author
Darcy Liu
committed
update all sample code
1 parent d3a224f commit e584042

File tree

4,403 files changed

+205484
-220501
lines changed

Some content is hidden

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

4,403 files changed

+205484
-220501
lines changed

ABUIGroups.zip

-5.73 KB
Binary file not shown.

ABUIGroups/ABUIGroups-Info.plist

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,28 @@
1818
<string>[email protected]</string>
1919
</array>
2020
<key>CFBundleIdentifier</key>
21-
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
21+
<string>com.example.apple-samplecode.${PRODUCT_NAME:rfc1034identifier}</string>
2222
<key>CFBundleInfoDictionaryVersion</key>
2323
<string>6.0</string>
2424
<key>CFBundleName</key>
2525
<string>${PRODUCT_NAME}</string>
2626
<key>CFBundlePackageType</key>
2727
<string>APPL</string>
2828
<key>CFBundleShortVersionString</key>
29-
<string>1.0</string>
29+
<string>1.1</string>
3030
<key>CFBundleSignature</key>
3131
<string>????</string>
3232
<key>CFBundleVersion</key>
33-
<string>1.0</string>
33+
<string>1.1</string>
3434
<key>LSRequiresIPhoneOS</key>
3535
<true/>
36-
<key>NSMainNibFile</key>
37-
<string>MainWindow</string>
36+
<key>UIMainStoryboardFile</key>
37+
<string>Storyboard</string>
38+
<key>UISupportedInterfaceOrientations</key>
39+
<array>
40+
<string>UIInterfaceOrientationPortrait</string>
41+
<string>UIInterfaceOrientationLandscapeLeft</string>
42+
<string>UIInterfaceOrientationLandscapeRight</string>
43+
</array>
3844
</dict>
3945
</plist>

ABUIGroups/ABUIGroups.xcodeproj/project.pbxproj

Lines changed: 60 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
1414
2892E4100DC94CBA00A64D0F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2892E40F0DC94CBA00A64D0F /* CoreGraphics.framework */; };
1515
28C286E10D94DF7D0034E888 /* GroupViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28C286E00D94DF7D0034E888 /* GroupViewController.m */; };
16-
EBA33722143278E50011ED69 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = EBA33721143278E50011ED69 /* Default.png */; };
17-
EBB63D5213204CCF0046250A /* AddGroupViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = EBB63D5013204CCF0046250A /* AddGroupViewController.xib */; };
16+
EB8CFF9917A06F79000E9B78 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = EB8CFF9717A06F79000E9B78 /* Default.png */; };
17+
EB8CFF9A17A06F79000E9B78 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = EB8CFF9817A06F79000E9B78 /* [email protected] */; };
1818
EBC432C31300A2F500B4C6A7 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = EBC432BC1300A2F500B4C6A7 /* Icon-72.png */; };
1919
EBC432C41300A2F500B4C6A7 /* Icon-Small-50.png in Resources */ = {isa = PBXBuildFile; fileRef = EBC432BD1300A2F500B4C6A7 /* Icon-Small-50.png */; };
2020
EBC432C51300A2F500B4C6A7 /* Icon-Small.png in Resources */ = {isa = PBXBuildFile; fileRef = EBC432BE1300A2F500B4C6A7 /* Icon-Small.png */; };
2121
EBC432C61300A2F500B4C6A7 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = EBC432BF1300A2F500B4C6A7 /* [email protected] */; };
2222
EBC432C71300A2F500B4C6A7 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = EBC432C01300A2F500B4C6A7 /* Icon.png */; };
2323
EBC432C81300A2F500B4C6A7 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = EBC432C11300A2F500B4C6A7 /* [email protected] */; };
2424
EBC432C91300A2F500B4C6A7 /* iTunesArtwork in Resources */ = {isa = PBXBuildFile; fileRef = EBC432C21300A2F500B4C6A7 /* iTunesArtwork */; };
25-
EBC432CD1300A30300B4C6A7 /* GroupViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = EBC432CC1300A30300B4C6A7 /* GroupViewController.xib */; };
26-
EBC432CF1300A30B00B4C6A7 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = EBC432CE1300A30B00B4C6A7 /* MainWindow.xib */; };
2725
EBC7192912FBD22800B1931B /* MySource.m in Sources */ = {isa = PBXBuildFile; fileRef = EBC7192812FBD22800B1931B /* MySource.m */; };
2826
EBC7192D12FBD37C00B1931B /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EBC7192C12FBD37C00B1931B /* AddressBook.framework */; };
2927
EBC719BD12FBDAF500B1931B /* AddGroupViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EBC719BB12FBDAF500B1931B /* AddGroupViewController.m */; };
28+
EBFD68F017A0686A00A85630 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EBFD68F217A0686A00A85630 /* Storyboard.storyboard */; };
29+
EBFD68F417A069A000A85630 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = EBFD68F317A069A000A85630 /* [email protected] */; };
3030
/* End PBXBuildFile section */
3131

3232
/* Begin PBXFileReference section */
@@ -42,10 +42,8 @@
4242
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
4343
8D1107310486CEB800E47090 /* ABUIGroups-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "ABUIGroups-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
4444
EB567B2F1317364B006805EA /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReadMe.txt; sourceTree = "<group>"; };
45-
EB695A1C1321C0AE006556F8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/AddGroupViewController.xib; sourceTree = "<group>"; };
46-
EB695A1D1321C0B7006556F8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/GroupViewController.xib; sourceTree = "<group>"; };
47-
EB695A1E1321C0C0006556F8 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = "<group>"; };
48-
EBA33721143278E50011ED69 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
45+
EB8CFF9717A06F79000E9B78 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = images/Default.png; sourceTree = "<group>"; };
46+
EB8CFF9817A06F79000E9B78 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "images/[email protected]"; sourceTree = "<group>"; };
4947
EBC432BC1300A2F500B4C6A7 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "images/Icon-72.png"; sourceTree = "<group>"; };
5048
EBC432BD1300A2F500B4C6A7 /* Icon-Small-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-Small-50.png"; path = "images/Icon-Small-50.png"; sourceTree = "<group>"; };
5149
EBC432BE1300A2F500B4C6A7 /* Icon-Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-Small.png"; path = "images/Icon-Small.png"; sourceTree = "<group>"; };
@@ -58,6 +56,8 @@
5856
EBC7192C12FBD37C00B1931B /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
5957
EBC719BA12FBDAF500B1931B /* AddGroupViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AddGroupViewController.h; sourceTree = "<group>"; };
6058
EBC719BB12FBDAF500B1931B /* AddGroupViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AddGroupViewController.m; sourceTree = "<group>"; };
59+
EBFD68F117A0686A00A85630 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/Storyboard.storyboard; sourceTree = "<group>"; };
60+
EBFD68F317A069A000A85630 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "images/[email protected]"; sourceTree = "<group>"; };
6161
/* End PBXFileReference section */
6262

6363
/* Begin PBXFrameworksBuildPhase section */
@@ -124,17 +124,17 @@
124124
isa = PBXGroup;
125125
children = (
126126
EBC432BC1300A2F500B4C6A7 /* Icon-72.png */,
127+
EB8CFF9717A06F79000E9B78 /* Default.png */,
128+
EB8CFF9817A06F79000E9B78 /* [email protected] */,
127129
EBC432BD1300A2F500B4C6A7 /* Icon-Small-50.png */,
130+
EBFD68F317A069A000A85630 /* [email protected] */,
128131
EBC432BE1300A2F500B4C6A7 /* Icon-Small.png */,
129132
EBC432BF1300A2F500B4C6A7 /* [email protected] */,
130133
EBC432C01300A2F500B4C6A7 /* Icon.png */,
131134
EBC432C11300A2F500B4C6A7 /* [email protected] */,
132135
EBC432C21300A2F500B4C6A7 /* iTunesArtwork */,
133-
EBB63D5013204CCF0046250A /* AddGroupViewController.xib */,
134-
EBC432CC1300A30300B4C6A7 /* GroupViewController.xib */,
135-
EBC432CE1300A30B00B4C6A7 /* MainWindow.xib */,
136+
EBFD68F217A0686A00A85630 /* Storyboard.storyboard */,
136137
8D1107310486CEB800E47090 /* ABUIGroups-Info.plist */,
137-
EBA33721143278E50011ED69 /* Default.png */,
138138
);
139139
name = Resources;
140140
sourceTree = "<group>";
@@ -203,17 +203,17 @@
203203
isa = PBXResourcesBuildPhase;
204204
buildActionMask = 2147483647;
205205
files = (
206-
EBC432CF1300A30B00B4C6A7 /* MainWindow.xib in Resources */,
207-
EBC432CD1300A30300B4C6A7 /* GroupViewController.xib in Resources */,
208206
EBC432C31300A2F500B4C6A7 /* Icon-72.png in Resources */,
209207
EBC432C41300A2F500B4C6A7 /* Icon-Small-50.png in Resources */,
210208
EBC432C51300A2F500B4C6A7 /* Icon-Small.png in Resources */,
211209
EBC432C61300A2F500B4C6A7 /* [email protected] in Resources */,
212210
EBC432C71300A2F500B4C6A7 /* Icon.png in Resources */,
213211
EBC432C81300A2F500B4C6A7 /* [email protected] in Resources */,
214212
EBC432C91300A2F500B4C6A7 /* iTunesArtwork in Resources */,
215-
EBB63D5213204CCF0046250A /* AddGroupViewController.xib in Resources */,
216-
EBA33722143278E50011ED69 /* Default.png in Resources */,
213+
EBFD68F017A0686A00A85630 /* Storyboard.storyboard in Resources */,
214+
EBFD68F417A069A000A85630 /* [email protected] in Resources */,
215+
EB8CFF9917A06F79000E9B78 /* Default.png in Resources */,
216+
EB8CFF9A17A06F79000E9B78 /* [email protected] in Resources */,
217217
);
218218
runOnlyForDeploymentPostprocessing = 0;
219219
};
@@ -235,28 +235,12 @@
235235
/* End PBXSourcesBuildPhase section */
236236

237237
/* Begin PBXVariantGroup section */
238-
EBB63D5013204CCF0046250A /* AddGroupViewController.xib */ = {
238+
EBFD68F217A0686A00A85630 /* Storyboard.storyboard */ = {
239239
isa = PBXVariantGroup;
240240
children = (
241-
EB695A1C1321C0AE006556F8 /* en */,
241+
EBFD68F117A0686A00A85630 /* en */,
242242
);
243-
name = AddGroupViewController.xib;
244-
sourceTree = "<group>";
245-
};
246-
EBC432CC1300A30300B4C6A7 /* GroupViewController.xib */ = {
247-
isa = PBXVariantGroup;
248-
children = (
249-
EB695A1D1321C0B7006556F8 /* en */,
250-
);
251-
name = GroupViewController.xib;
252-
sourceTree = "<group>";
253-
};
254-
EBC432CE1300A30B00B4C6A7 /* MainWindow.xib */ = {
255-
isa = PBXVariantGroup;
256-
children = (
257-
EB695A1E1321C0C0006556F8 /* en */,
258-
);
259-
name = MainWindow.xib;
243+
name = Storyboard.storyboard;
260244
sourceTree = "<group>";
261245
};
262246
/* End PBXVariantGroup section */
@@ -266,14 +250,29 @@
266250
isa = XCBuildConfiguration;
267251
buildSettings = {
268252
ALWAYS_SEARCH_USER_PATHS = NO;
253+
CLANG_ENABLE_OBJC_ARC = YES;
269254
COPY_PHASE_STRIP = NO;
270255
GCC_DYNAMIC_NO_PIC = NO;
271256
GCC_OPTIMIZATION_LEVEL = 0;
272257
GCC_PRECOMPILE_PREFIX_HEADER = YES;
273258
GCC_PREFIX_HEADER = ABUIGroups_Prefix.pch;
274-
GCC_VERSION = com.apple.compilers.llvmgcc42;
259+
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
260+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
261+
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
262+
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO;
263+
GCC_WARN_MISSING_PARENTHESES = YES;
264+
GCC_WARN_SHADOW = NO;
265+
GCC_WARN_SIGN_COMPARE = NO;
266+
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
267+
GCC_WARN_UNDECLARED_SELECTOR = NO;
268+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
269+
GCC_WARN_UNUSED_FUNCTION = NO;
270+
GCC_WARN_UNUSED_LABEL = NO;
271+
GCC_WARN_UNUSED_VALUE = NO;
272+
GCC_WARN_UNUSED_VARIABLE = YES;
275273
INFOPLIST_FILE = "ABUIGroups-Info.plist";
276-
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
274+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
275+
ONLY_ACTIVE_ARCH = YES;
277276
PRODUCT_NAME = ABUIGroups;
278277
RUN_CLANG_STATIC_ANALYZER = NO;
279278
};
@@ -283,14 +282,28 @@
283282
isa = XCBuildConfiguration;
284283
buildSettings = {
285284
ALWAYS_SEARCH_USER_PATHS = NO;
285+
CLANG_ENABLE_OBJC_ARC = YES;
286286
COPY_PHASE_STRIP = YES;
287287
GCC_PRECOMPILE_PREFIX_HEADER = YES;
288288
GCC_PREFIX_HEADER = ABUIGroups_Prefix.pch;
289-
GCC_VERSION = com.apple.compilers.llvmgcc42;
289+
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
290+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
291+
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
292+
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO;
293+
GCC_WARN_MISSING_PARENTHESES = YES;
294+
GCC_WARN_SHADOW = NO;
295+
GCC_WARN_SIGN_COMPARE = NO;
296+
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
297+
GCC_WARN_UNDECLARED_SELECTOR = NO;
298+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
299+
GCC_WARN_UNUSED_FUNCTION = NO;
300+
GCC_WARN_UNUSED_LABEL = NO;
301+
GCC_WARN_UNUSED_VALUE = NO;
302+
GCC_WARN_UNUSED_VARIABLE = YES;
290303
INFOPLIST_FILE = "ABUIGroups-Info.plist";
291-
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
304+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
292305
PRODUCT_NAME = ABUIGroups;
293-
RUN_CLANG_STATIC_ANALYZER = NO;
306+
RUN_CLANG_STATIC_ANALYZER = YES;
294307
VALIDATE_PRODUCT = YES;
295308
};
296309
name = Release;
@@ -299,11 +312,13 @@
299312
isa = XCBuildConfiguration;
300313
buildSettings = {
301314
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
315+
CODE_SIGN_IDENTITY = "";
302316
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
303317
GCC_C_LANGUAGE_STANDARD = c99;
304318
GCC_WARN_ABOUT_RETURN_TYPE = YES;
305319
GCC_WARN_UNUSED_VARIABLE = YES;
306-
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
320+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
321+
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
307322
SDKROOT = iphoneos;
308323
};
309324
name = Debug;
@@ -312,12 +327,14 @@
312327
isa = XCBuildConfiguration;
313328
buildSettings = {
314329
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
315-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
330+
CODE_SIGN_IDENTITY = "";
331+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
316332
GCC_C_LANGUAGE_STANDARD = c99;
317333
GCC_WARN_ABOUT_RETURN_TYPE = YES;
318334
GCC_WARN_UNUSED_VARIABLE = YES;
319-
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
335+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
320336
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
337+
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
321338
SDKROOT = iphoneos;
322339
};
323340
name = Release;

ABUIGroups/ABUIGroups_Prefix.pch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//
44
#import <Availability.h>
55

6-
#ifndef __IPHONE_3_0
7-
#warning "This project uses features only available in iPhone SDK 3.0 and later."
6+
#ifndef __IPHONE_6_0
7+
#warning "This project uses features only available in iOS SDK 6.0 and later."
88
#endif
99

1010

ABUIGroups/Classes/ABUIGroupsAppDelegate.h

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
File: ABUIGroupsAppDelegate.h
33
Abstract: Application delegate that sets up the application.
4-
Version: 1.0
4+
Version: 1.1
55
66
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
77
Inc. ("Apple") in consideration of your agreement to the following
@@ -41,20 +41,12 @@
4141
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
4242
POSSIBILITY OF SUCH DAMAGE.
4343
44-
Copyright (C) 2011 Apple Inc. All Rights Reserved.
44+
Copyright (C) 2013 Apple Inc. All Rights Reserved.
4545
4646
*/
4747

48-
#import <UIKit/UIKit.h>
49-
50-
@interface ABUIGroupsAppDelegate : NSObject <UIApplicationDelegate>
51-
{
52-
UIWindow *window;
53-
UINavigationController *navigationController;
54-
}
55-
56-
@property (nonatomic, retain) IBOutlet UIWindow *window;
57-
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
48+
@interface ABUIGroupsAppDelegate : UIResponder <UIApplicationDelegate>
49+
@property (strong, nonatomic) UIWindow *window;
5850

5951
@end
6052

ABUIGroups/Classes/ABUIGroupsAppDelegate.m

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
File: ABUIGroupsAppDelegate.m
33
Abstract: Application delegate that sets up the application.
4-
Version: 1.0
4+
Version: 1.1
55
66
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
77
Inc. ("Apple") in consideration of your agreement to the following
@@ -41,26 +41,19 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
4141
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
4242
POSSIBILITY OF SUCH DAMAGE.
4343
44-
Copyright (C) 2011 Apple Inc. All Rights Reserved.
44+
Copyright (C) 2013 Apple Inc. All Rights Reserved.
4545
4646
*/
4747

4848
#import "ABUIGroupsAppDelegate.h"
49-
#import "GroupViewController.h"
5049

5150
@implementation ABUIGroupsAppDelegate
52-
@synthesize window, navigationController;
53-
5451

5552
#pragma mark -
5653
#pragma mark Application lifecycle
5754

5855
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
5956
{
60-
// Add the navigation controller's view to the window and display.
61-
[self.window addSubview:navigationController.view];
62-
[self.window makeKeyAndVisible];
63-
6457
return YES;
6558
}
6659

@@ -118,13 +111,5 @@ Free up as much memory as possible by purging cached data objects that can be re
118111
*/
119112
}
120113

121-
122-
- (void)dealloc
123-
{
124-
[navigationController release];
125-
[window release];
126-
[super dealloc];
127-
}
128-
129114
@end
130115

ABUIGroups/Classes/AddGroupViewController.h

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
File: AddGroupViewController.h
3-
Abstract: Definitions for the AddGroupViewController class.
4-
Version: 1.0
3+
Abstract: Allows users to enter a name for a new group.
4+
Version: 1.1
55
66
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
77
Inc. ("Apple") in consideration of your agreement to the following
@@ -41,30 +41,11 @@
4141
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
4242
POSSIBILITY OF SUCH DAMAGE.
4343
44-
Copyright (C) 2011 Apple Inc. All Rights Reserved.
44+
Copyright (C) 2013 Apple Inc. All Rights Reserved.
4545
4646
*/
4747

48-
@class AddGroupViewController;
49-
@protocol AddGroupDelegate;
48+
@interface AddGroupViewController : UIViewController
49+
@property (nonatomic, copy) NSString *group;
5050

51-
@interface AddGroupViewController : UIViewController<UITextFieldDelegate>
52-
{
53-
UITextField *textField;
54-
id <AddGroupDelegate> delegate;
55-
}
56-
57-
@property(nonatomic, retain) IBOutlet UITextField *textField;
58-
@property (nonatomic, assign) id <AddGroupDelegate> delegate;
59-
60-
- (IBAction)cancel:(id)sender;
61-
- (IBAction)save:(id)sender;
62-
63-
@end
64-
65-
@protocol AddGroupDelegate <NSObject>
66-
67-
- (void)addViewController:(AddGroupViewController *)addGroupViewController
68-
didAddGroup:(NSString *)name;
69-
70-
@end
51+
@end

0 commit comments

Comments
 (0)