Jelajahi Sumber

Remove bundle const

MJ Lee 11 tahun lalu
induk
melakukan
eeae382672

TEMPAT SAMPAH
MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 3
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.h

@@ -21,13 +21,13 @@
 // 文字颜色
 #define MJRefreshLabelTextColor MJColor(150, 150, 150)
 
+// 图片路径
+#define MJRefreshSrcName(file) [@"MJRefresh.bundle" stringByAppendingPathComponent:file]
+
 extern const CGFloat MJRefreshViewHeight;
 extern const CGFloat MJRefreshFastAnimationDuration;
 extern const CGFloat MJRefreshSlowAnimationDuration;
 
-extern NSString *const MJRefreshBundleName;
-#define MJRefreshSrcName(file) [MJRefreshBundleName stringByAppendingPathComponent:file]
-
 extern NSString *const MJRefreshFooterPullToRefresh;
 extern NSString *const MJRefreshFooterReleaseToRefresh;
 extern NSString *const MJRefreshFooterRefreshing;

+ 0 - 2
MJRefreshExample/MJRefreshExample/MJRefresh/MJRefreshConst.m

@@ -12,8 +12,6 @@
 const CGFloat MJRefreshFastAnimationDuration = 0.25;
 const CGFloat MJRefreshSlowAnimationDuration = 0.4;
 
-NSString *const MJRefreshBundleName = @"MJRefresh.bundle";
-
 NSString *const MJRefreshFooterPullToRefresh = @"上拉可以加载更多数据";
 NSString *const MJRefreshFooterReleaseToRefresh = @"松开立即加载更多数据";
 NSString *const MJRefreshFooterRefreshing = @"MJ哥正在帮你加载数据...";