Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xcode Warnings #294

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Pod/Classes/TSMessage.h
Expand Up @@ -151,9 +151,9 @@ typedef NS_ENUM(NSInteger,TSMessageNotificationDuration) {
image:(UIImage *)image
type:(TSMessageNotificationType)type
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(TSMessageNotificationPosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled;

Expand All @@ -169,7 +169,7 @@ typedef NS_ENUM(NSInteger,TSMessageNotificationDuration) {
@return YES if the currently displayed notification was successfully dismissed. NO if no notification
was currently displayed.
*/
+ (BOOL)dismissActiveNotificationWithCompletion:(void (^)())completion;
+ (BOOL)dismissActiveNotificationWithCompletion:(void (^)(void))completion;

/** Use this method to set a default view controller to display the messages in */
+ (void)setDefaultViewController:(UIViewController *)defaultViewController;
Expand Down
8 changes: 4 additions & 4 deletions Pod/Classes/TSMessage.m
Expand Up @@ -125,9 +125,9 @@ + (void)showNotificationInViewController:(UIViewController *)viewController
image:(UIImage *)image
type:(TSMessageNotificationType)type
duration:(NSTimeInterval)duration
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(TSMessageNotificationPosition)messagePosition
canBeDismissedByUser:(BOOL)dismissingEnabled
{
Expand Down Expand Up @@ -328,7 +328,7 @@ - (void)fadeOutNotification:(TSMessageView *)currentView
[self fadeOutNotification:currentView animationFinishedBlock:nil];
}

- (void)fadeOutNotification:(TSMessageView *)currentView animationFinishedBlock:(void (^)())animationFinished
- (void)fadeOutNotification:(TSMessageView *)currentView animationFinishedBlock:(void (^)(void))animationFinished
{
currentView.messageIsFullyDisplayed = NO;
[NSObject cancelPreviousPerformRequestsWithTarget:self
Expand Down Expand Up @@ -379,7 +379,7 @@ + (BOOL)dismissActiveNotification
return [self dismissActiveNotificationWithCompletion:nil];
}

+ (BOOL)dismissActiveNotificationWithCompletion:(void (^)())completion
+ (BOOL)dismissActiveNotificationWithCompletion:(void (^)(void))completion
{
if ([[TSMessage sharedMessage].messages count] == 0) return NO;

Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/TSMessageView.h
Expand Up @@ -65,9 +65,9 @@
type:(TSMessageNotificationType)notificationType
duration:(CGFloat)duration
inViewController:(UIViewController *)viewController
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(TSMessageNotificationPosition)position
canBeDismissedByUser:(BOOL)dismissingEnabled;

Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/TSMessageView.m
Expand Up @@ -187,9 +187,9 @@ - (id)initWithTitle:(NSString *)title
type:(TSMessageNotificationType)aNotificationType
duration:(CGFloat)duration
inViewController:(UIViewController *)viewController
callback:(void (^)())callback
callback:(void (^)(void))callback
buttonTitle:(NSString *)buttonTitle
buttonCallback:(void (^)())buttonCallback
buttonCallback:(void (^)(void))buttonCallback
atPosition:(TSMessageNotificationPosition)position
canBeDismissedByUser:(BOOL)dismissingEnabled
{
Expand Down