|
@@ -69,9 +69,10 @@
|
|
|
|
|
|
|
|
- (void)dealloc
|
|
- (void)dealloc
|
|
|
{
|
|
{
|
|
|
- [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
|
|
|
|
|
|
|
+#ifdef RA_NOTIFICATION
|
|
|
|
|
+// [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
|
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
|
-
|
|
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
- (void)didReceiveMemoryWarning {
|
|
- (void)didReceiveMemoryWarning {
|
|
|
[super didReceiveMemoryWarning];
|
|
[super didReceiveMemoryWarning];
|
|
@@ -286,7 +287,6 @@
|
|
|
#pragma mark - Notification
|
|
#pragma mark - Notification
|
|
|
- (void)OnUpdatePrice: (NSNotification *)notification
|
|
- (void)OnUpdatePrice: (NSNotification *)notification
|
|
|
{
|
|
{
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
|
if(self.disable_refresh)
|
|
if(self.disable_refresh)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
@@ -314,7 +314,6 @@
|
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -322,7 +321,6 @@
|
|
|
|
|
|
|
|
- (void)OnRefreshUI: (NSNotification *)notification
|
|
- (void)OnRefreshUI: (NSNotification *)notification
|
|
|
{
|
|
{
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
|
if(self.disable_refresh)
|
|
if(self.disable_refresh)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
@@ -348,12 +346,10 @@
|
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- (void)OnReloadData: (NSNotification *)notification
|
|
- (void)OnReloadData: (NSNotification *)notification
|
|
|
{
|
|
{
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
|
if(self.disable_refresh)
|
|
if(self.disable_refresh)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
@@ -377,13 +373,12 @@
|
|
|
self.notification_refreshLevel = NotificationRefreshLevelData;
|
|
self.notification_refreshLevel = NotificationRefreshLevelData;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- (void)OnClearData: (NSNotification *)notification
|
|
- (void)OnClearData: (NSNotification *)notification
|
|
|
{
|
|
{
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
|
|
|
+
|
|
|
if(![self respondsToSelector:@selector(clear_data)])
|
|
if(![self respondsToSelector:@selector(clear_data)])
|
|
|
return;
|
|
return;
|
|
|
if([self isVisible])
|
|
if([self isVisible])
|
|
@@ -406,7 +401,7 @@
|
|
|
[self clear_data];
|
|
[self clear_data];
|
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
self.notification_refreshLevel = NotificationRefreshLevelView;
|
|
|
}
|
|
}
|
|
|
- }});
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -426,6 +421,7 @@
|
|
|
}
|
|
}
|
|
|
+(void) Notify:(NSString*) receiver Message:(NSString*)notification_msg
|
|
+(void) Notify:(NSString*) receiver Message:(NSString*)notification_msg
|
|
|
{
|
|
{
|
|
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
//NSArray* arr1 =[RAConvertor string2arr:@"abcde" separator:nil];
|
|
//NSArray* arr1 =[RAConvertor string2arr:@"abcde" separator:nil];
|
|
|
// NSArray* arr2 =[RAConvertor string2arr:nil separator:nil];
|
|
// NSArray* arr2 =[RAConvertor string2arr:nil separator:nil];
|
|
|
NSArray* arr_receiver = [RAConvertor string2arr:receiver separator:@","];
|
|
NSArray* arr_receiver = [RAConvertor string2arr:receiver separator:@","];
|
|
@@ -442,7 +438,7 @@
|
|
|
[[NSNotificationCenter defaultCenter] postNotification:notification];
|
|
[[NSNotificationCenter defaultCenter] postNotification:notification];
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|