This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
18fc6ec
commit 7ef5b4b
Showing
6 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
JSQMessagesViewController/Categories/UIDevice+JSQMessages.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Created by Jesse Squires | ||
// http://www.jessesquires.com | ||
// | ||
// | ||
// Documentation | ||
// http://cocoadocs.org/docsets/JSQMessagesViewController | ||
// | ||
// | ||
// GitHub | ||
// https://github.com/jessesquires/JSQMessagesViewController | ||
// | ||
// | ||
// License | ||
// Copyright (c) 2014 Jesse Squires | ||
// Released under an MIT license: http://opensource.org/licenses/MIT | ||
// | ||
|
||
@import UIKit; | ||
|
||
@interface UIDevice (JSQMessages) | ||
|
||
/** | ||
* @return Whether or not the current device is running a version of iOS before 8.0. | ||
*/ | ||
+ (BOOL)jsq_isCurrentDeviceBeforeiOS8; | ||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
JSQMessagesViewController/Categories/UIDevice+JSQMessages.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Created by Jesse Squires | ||
// http://www.jessesquires.com | ||
// | ||
// | ||
// Documentation | ||
// http://cocoadocs.org/docsets/JSQMessagesViewController | ||
// | ||
// | ||
// GitHub | ||
// https://github.com/jessesquires/JSQMessagesViewController | ||
// | ||
// | ||
// License | ||
// Copyright (c) 2014 Jesse Squires | ||
// Released under an MIT license: http://opensource.org/licenses/MIT | ||
// | ||
|
||
#import "UIDevice+JSQMessages.h" | ||
|
||
@implementation UIDevice (JSQMessages) | ||
|
||
+ (BOOL)jsq_isCurrentDeviceBeforeiOS8 | ||
{ | ||
// iOS < 8.0 | ||
return [[UIDevice currentDevice].systemVersion compare:@"8.0.0" options:NSNumericSearch] == NSOrderedAscending; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters