【发布时间】:2013-10-18 07:51:23
【问题描述】:
我的问题是关于 AppleStore 应用程序的规则。
在我正在开发的应用程序中,我有一个 UITabBarController。它在 AppDelegate 中创建并隐藏...根据需要显示和隐藏视图。我正在开发的实现是否正确?
我已经发布了非常 UIPickerViews 但在我做横向时占用空间。我想我会创建一个 DropDown 作为替代方案。这是正确的吗?还有更多的选择吗?
苹果可以禁止发布这样开发的App吗?
更新
在 AppDelegate 中有:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_tabBarAppDelegate = [[UITabBarController alloc] init];
Método para esconder a UITabBarController
[ShowTabBarController hideTabBar:self.tabBarAppDelegate];
.....
}
然后,当您想在 UITabBarController 中显示特定视图时:
-(void)createTabBarController
{
NSMutableArray * viewControllers = [ [ NSMutableArray alloc ] init ] ;
UITabBarController * TabBarController = [ [ UITabBarController alloc ] init ] ;
ViewController * viewController = [ [ ViewController alloc ] initWithNibName : @ " ViewController " bundle: nil ] ;
UINavigationController * navigationController = [ [ UINavigationController alloc ] initWithRootViewController : viewController ] ;
[ viewControllers addObject : navigationController ] ;
ViewController2 viewController2 * = [ [ VisitDetailsViewController alloc ] initWithNibName : @ " ViewController2 " bundle: nil ] ;
UINavigationController * navigationController2 = [ [ UINavigationController alloc ] initWithRootViewController : ViewController2 ] ;
[ viewControllers addObject : navigationController2 ] ;
tabBarController.viewControllers = viewControllers ;
self.navigationController.tabBarController.viewControllers = tabBarController.viewControllers ;
[ShowTabBarController showTabBar: self.navigationController.tabBarController];
}
然后我将更改UITabBarController,显示和隐藏。应客户要求。
【问题讨论】:
-
恐怕我无法解析您的问题。您能否更清楚地描述您的应用是如何设置的?
-
不,Apple 不会因为您所描述的内容而禁止您的应用。
-
更新我的问题@AlexWayne。
-
@FahriAzimov 感谢您的帮助。
-
不确定我是否完全理解您的设计方案,但 Apple 不会因此而拒绝您。用户可能虽然听起来令人困惑,但您的用户体验无法取悦所有人,但您可以做到这一点,这样它就不会令人困惑,而您的用户体验听起来令人困惑,但这一切都取决于客户想要什么。我之前制作的应用程序令人困惑,只是因为客户想要这样。
标签: ios objective-c uitabbarcontroller uipickerview uipickerviewcontroller