Release 0.3.0
This commit is contained in:
1 parent
7822588918
commit
a2f62db36e
12 files changed
+200
-205
No files matched your search
@@ -103,15 +103,4 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)openSettings
|
||||
{
|
||||
BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
|
||||
if (canOpenSettings) {
|
||||
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
||||
[[UIApplication sharedApplication] openURL:url];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -77,9 +77,11 @@
|
||||
for (NSObject *item in items) {
|
||||
if (item && [item isKindOfClass:[TabBarItem class]]) {
|
||||
|
||||
[_tabBarItems addObject:item];
|
||||
[(TabBarItem*)item setDelegate:self];
|
||||
[_tabBarView addSubview:item];
|
||||
TabBarItem *_item = (TabBarItem*)item;
|
||||
|
||||
[_tabBarItems addObject:_item];
|
||||
[(TabBarItem*)_item setDelegate:self];
|
||||
[_tabBarView addSubview:_item];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -157,10 +157,10 @@
|
||||
UIAlertView *alert = [UIAlertView alertViewWithTitle:NSLocalizedString(@"Settings", @"") message:NSLocalizedString(@"Open Settings?", @"")];
|
||||
|
||||
[alert addButtonWithTitle:NSLocalizedString(@"OK", @"") actionBlock:^(UIAlertView *alertView, NSInteger buttonIndex) {
|
||||
BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
|
||||
if (canOpenSettings) {
|
||||
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
||||
[[UIApplication sharedApplication] openURL:url];
|
||||
NSURL *settings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
||||
if ([[UIApplication sharedApplication] canOpenURL:settings])
|
||||
{
|
||||
[[UIApplication sharedApplication] openURL:settings];
|
||||
}
|
||||
}];
|
||||
[alert addCancelButtonWithTitle:NSLocalizedString(@"CANCEL", @"") actionBlock:nil];
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ typedef enum {
|
||||
|
||||
@property (nonatomic) NSUInteger currentPage;
|
||||
|
||||
@property (nonatomic, retain) id<MMCPSScrollViewDelegate> MMCPSDelegate;
|
||||
@property (nonatomic, assign) id<MMCPSScrollViewDelegate> MMCPSDelegate;
|
||||
|
||||
- (id)initWithFrame:(CGRect)frame andType:(MMCPSScrollType) type;
|
||||
|
||||
|
||||
Reference in new issue
Block a user