mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
Add conditional compilation for the Pull to Refresh trigger
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "RKRefreshTriggerView.h"
|
||||
|
||||
@@ -37,3 +39,5 @@ typedef enum {
|
||||
@property (nonatomic, readonly) UIScrollView *scrollView;
|
||||
@property (nonatomic, readonly, retain) RKRefreshTriggerView *triggerView;
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
#import <UIKit/UIGestureRecognizerSubclass.h>
|
||||
#import "RKRefreshGestureRecognizer.h"
|
||||
@@ -223,3 +225,5 @@ static CGFloat const kDefaultTriggerViewHeight = 64.f;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface RKRefreshTriggerView : UIView <UIAppearanceContainer,UIAppearance>
|
||||
@@ -36,3 +38,5 @@
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#import "RKRefreshTriggerView.h"
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
#define DEFAULT_REFRESH_TITLE_FONT [UIFont boldSystemFontOfSize:13.0f]
|
||||
#define DEFAULT_REFRESH_TITLE_COLOR [UIColor darkGrayColor]
|
||||
#define DEFAULT_REFRESH_UPDATED_FONT [UIFont systemFontOfSize:12.0f]
|
||||
@@ -174,3 +176,5 @@
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user