定制 UItabbar

	for(UIView *vv in [tabBarController.tabBar subviews])
	{
		for(UIView *v in [vv subviews])
		{
			//[v isKindOfClass:NSClassFromString(@"")];
			if([v isKindOfClass:NSClassFromString(@"UITabBarButtonLabel")]) {
				[v setHidden:YES];
			} else if([v isKindOfClass:NSClassFromString(@"UITabBarSwappableImageView")]) {
				[v setHidden:YES];
			}
			NSLog(@"%@", v);
		}
	}

你可能感兴趣的:(定制 UItabbar)