Boolean isExternalStorageAvailable = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);
if(isExternalStorageAvailable)
{
// ok
}
else
{
// fail
}
Android check External Storage State is available
標籤: android 0 意見張貼者: kenywalker 於 凌晨1:21
iOS prevent pop to navigation root while double-tap of UITabBarController
標籤: iOS 0 意見
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
return viewController != tabBarController.selectedViewController;
}
張貼者: kenywalker 於 晚上7:19
iOS tableview header view
標籤: iOS 0 意見
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section
{
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
[header.textLabel setTextColor:[UIColor darkGrayColor]];
// Set background color
header.contentView.backgroundColor = [UIColor clearColor];
}
張貼者: kenywalker 於 晚上7:53
change Status Bar text color in iOS 7
標籤: iOS 0 意見First, go to plist file and set UIViewControllerBasedStatusBarAppearance to NO
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]reference to stack overview
張貼者: kenywalker 於 晚上11:01
訂閱:
意見 (Atom)
Diseño e iconos por N.Design Studio | A Blogger por Blog and Web
