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