Add conditional compilation for the Pull to Refresh trigger

This commit is contained in:
Blake Watters
2012-03-13 09:50:05 -04:00
parent e560578f9e
commit c3b2ef164b
4 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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