Skip to content

Commit

Permalink
delegate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cwRichardKim committed Apr 28, 2015
1 parent 4ae85fc commit 64818f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 29 deletions.
2 changes: 1 addition & 1 deletion RKDropdownAlert.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "RKDropdownAlert"
s.version = "0.1.1"
s.version = "0.3.0"
s.summary = "iOS: an extremely simple (and customizeable) alert alternative based on Facebook's app Slingshot"

s.description = "A UIAlertView alternative that mimics the iPhone's push notification system', -UIAlertView, -SVProgressHUD, -objectivec, -ios, -iphone, -xcode"
Expand Down
Binary file not shown.
34 changes: 6 additions & 28 deletions SlingshotDropdownAlert/RKDropdownAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// objective-c objc obj c

#import "RKDropdownAlert.h"

NSString *const RKDropdownAlertDismissAllNotification = @"RKDropdownAlertDismissAllNotification";

//%%% CUSTOMIZE FOR DEFAULT SETTINGS
Expand All @@ -28,12 +29,7 @@ @implementation RKDropdownAlert{
@synthesize defaultTextColor;
@synthesize defaultViewColor;

//////////////////////////////////////////////////////////
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%% customizable %%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//
#pragma mark CUSTOMIZABLE

//%%% CUSTOMIZE DEFAULT VALUES
// These are the default value. For example, if you don't specify a color, then
Expand Down Expand Up @@ -88,7 +84,6 @@ - (void)dismissAlertView {
[self hideView:self];
}


- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self
name:RKDropdownAlertDismissAllNotification
Expand Down Expand Up @@ -130,23 +125,12 @@ -(void)removeView:(UIButton *)alertView
}
}

//
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%% customizable %%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%% Ignore %%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//
//%%% these are necessary methods that call each other depending on which method you call. Generally shouldn't edit these unless you know what you're doing


#pragma mark IGNORE THESE

//%%% these are necessary methods that call each other depending on which method you call. Generally shouldn't edit these unless you know what you're doing

+(RKDropdownAlert*)alertView {
RKDropdownAlert *alert = [[self alloc]initWithFrame:CGRectMake(0, -HEIGHT, [[UIScreen mainScreen]bounds].size.width, HEIGHT)];
return alert;
Expand Down Expand Up @@ -323,10 +307,4 @@ -(BOOL)messageTextIsOneLine
return YES;
}

//
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%% Ignore %%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//////////////////////////////////////////////////////////
@end

0 comments on commit 64818f2

Please sign in to comment.