Skip to content

Commit

Permalink
Manually merged ActionSheetPicker.m - decided to use earlier title im…
Browse files Browse the repository at this point in the history
…plementation.

Updated .gitignore to ignore dot underscore files

Changed sample to use the title "Title" instead of "Titlu"
  • Loading branch information
TimCinel committed May 11, 2011
2 parents c1fa542 + d95df2c commit c4703d1
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 332 deletions.
16 changes: 16 additions & 0 deletions .gitignore
@@ -0,0 +1,16 @@
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
._*
4 changes: 2 additions & 2 deletions ActionSheetPicker.h
Expand Up @@ -19,6 +19,7 @@

NSArray *_data;
NSInteger _selectedIndex;
NSString *_title;

UIDatePickerMode _datePickerMode;
NSDate *_selectedDate;
Expand All @@ -30,7 +31,6 @@
UIPickerView *_pickerView;
UIDatePicker *_datePickerView;
NSInteger _pickerPosition;
NSString *_title;

BOOL _convenientObject;
}
Expand All @@ -39,6 +39,7 @@

@property (nonatomic, retain) NSArray *data;
@property (nonatomic, assign) NSInteger selectedIndex;
@property (nonatomic, copy) NSString *title;

@property (nonatomic, assign) UIDatePickerMode datePickerMode;
@property (nonatomic, retain) NSDate *selectedDate;
Expand All @@ -50,7 +51,6 @@
@property (nonatomic, retain) UIPickerView *pickerView;
@property (nonatomic, retain) UIDatePicker *datePickerView;
@property (nonatomic, assign) NSInteger pickerPosition;
@property (nonatomic, assign) NSString *title;
@property (nonatomic, assign) BOOL convenientObject;

//no memory management required for convenience methods
Expand Down
4 changes: 2 additions & 2 deletions ActionSheetPicker.m
Expand Up @@ -15,6 +15,7 @@ @implementation ActionSheetPicker

@synthesize data = _data;
@synthesize selectedIndex = _selectedIndex;
@synthesize title = _title;

@synthesize selectedDate = _selectedDate;
@synthesize datePickerMode = _datePickerMode;
Expand All @@ -26,7 +27,6 @@ @implementation ActionSheetPicker
@synthesize pickerView = _pickerView;
@synthesize datePickerView = _datePickerView;
@synthesize pickerPosition = _pickerPosition;
@synthesize title = _title;

@synthesize convenientObject = _convenientObject;

Expand Down Expand Up @@ -224,7 +224,7 @@ - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row f


- (void)dealloc {
NSLog(@"ActionSheet Dealloc");
// NSLog(@"ActionSheet Dealloc");
self.actionSheet = nil;

self.pickerView.delegate = nil;
Expand Down
14 changes: 8 additions & 6 deletions Sample/ActionSheetPicker.xcodeproj/project.pbxproj
Expand Up @@ -15,7 +15,7 @@
2899E5220DE3E06400AC0155 /* ActionSheetPickerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* ActionSheetPickerViewController.xib */; };
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
28D7ACF80DDB3853001CB0EB /* ActionSheetPickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* ActionSheetPickerViewController.m */; };
BAE7C27212D58B8F001CEE19 /* ActionSheetPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = BAE7C27112D58B8F001CEE19 /* ActionSheetPicker.m */; };
8B2B30A9130EF13700B90F79 /* ActionSheetPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B2B30A8130EF13700B90F79 /* ActionSheetPicker.m */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -31,9 +31,9 @@
28D7ACF70DDB3853001CB0EB /* ActionSheetPickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ActionSheetPickerViewController.m; sourceTree = "<group>"; };
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* ActionSheetPicker_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ActionSheetPicker_Prefix.pch; sourceTree = "<group>"; };
8B2B30A7130EF13700B90F79 /* ActionSheetPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ActionSheetPicker.h; path = ../ActionSheetPicker.h; sourceTree = SOURCE_ROOT; };
8B2B30A8130EF13700B90F79 /* ActionSheetPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ActionSheetPicker.m; path = ../ActionSheetPicker.m; sourceTree = SOURCE_ROOT; };
8D1107310486CEB800E47090 /* ActionSheetPicker-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "ActionSheetPicker-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
BAE7C27012D58B8F001CEE19 /* ActionSheetPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ActionSheetPicker.h; sourceTree = "<group>"; };
BAE7C27112D58B8F001CEE19 /* ActionSheetPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ActionSheetPicker.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -53,12 +53,12 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
8B2B30A7130EF13700B90F79 /* ActionSheetPicker.h */,
8B2B30A8130EF13700B90F79 /* ActionSheetPicker.m */,
1D3623240D0F684500981E51 /* ActionSheetPickerAppDelegate.h */,
1D3623250D0F684500981E51 /* ActionSheetPickerAppDelegate.m */,
28D7ACF60DDB3853001CB0EB /* ActionSheetPickerViewController.h */,
28D7ACF70DDB3853001CB0EB /* ActionSheetPickerViewController.m */,
BAE7C27012D58B8F001CEE19 /* ActionSheetPicker.h */,
BAE7C27112D58B8F001CEE19 /* ActionSheetPicker.m */,
);
path = Classes;
sourceTree = "<group>";
Expand Down Expand Up @@ -176,7 +176,7 @@
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
1D3623260D0F684500981E51 /* ActionSheetPickerAppDelegate.m in Sources */,
28D7ACF80DDB3853001CB0EB /* ActionSheetPickerViewController.m in Sources */,
BAE7C27212D58B8F001CEE19 /* ActionSheetPicker.m in Sources */,
8B2B30A9130EF13700B90F79 /* ActionSheetPicker.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -194,6 +194,7 @@
GCC_PREFIX_HEADER = ActionSheetPicker_Prefix.pch;
INFOPLIST_FILE = "ActionSheetPicker-Info.plist";
PRODUCT_NAME = ActionSheetPicker;
SDKROOT = iphoneos;
};
name = Debug;
};
Expand All @@ -206,6 +207,7 @@
GCC_PREFIX_HEADER = ActionSheetPicker_Prefix.pch;
INFOPLIST_FILE = "ActionSheetPicker-Info.plist";
PRODUCT_NAME = ActionSheetPicker;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
80 changes: 0 additions & 80 deletions Sample/Classes/ActionSheetPicker.h

This file was deleted.

0 comments on commit c4703d1

Please sign in to comment.