【问题标题】:Will IOS private API affect the app publishing on App Store?IOS私有API会影响App Store上的应用发布吗?
【发布时间】:2015-08-17 10:01:23
【问题描述】:

我在我的应用程序上使用了titleForSwipeAccessoryButtonForRowAtIndexPathswipeAccessoryButtonPushedForRowAtIndexPath(适用于 IOS 7)和 editActionsForRowAtIndexPath(适用于 IOS 8)。

我添加这两个 API 的目的是使用滑动来显示删除按钮,该按钮用于删除行的项目和共享按钮,用于在 facebook、whatsapp、twitter 等上共享该行的内容. 而我的客户需要这些功能。

titleForSwipeAccessoryButtonForRowAtIndexPathswipeAccessoryButtonPushedForRowAtIndexPath 是私有 API。当我在 App Store 上发布我的应用程序时,我的应用程序会被 Apple 拒绝吗?

【问题讨论】:

  • 请在问题中添加更多信息。
  • 请说明您使用此私有 API 的目的是什么?
  • @NirmitDagly 我添加这两个 API 的目的是使用滑动显示删除按钮,用于删除行的项目和共享按钮,用于共享行的内容在 facebook、whatsapp、twitter 等。我的客户需要这些功能。
  • 你在用 UITabelView 的那一行吗?
  • @NirmitDagly 是的,这个 API 适用于我的应用

标签: ios app-store publishing


【解决方案1】:

如果您使用此私有 API,则无需担心应用会被苹果拒绝。但请确保应用程序在使用此 API 时不会崩溃。 此外,如果您将此应用程序定位为 iOS 8.0 或更高版本,则可以通过实现以下方法来实现。在此之后,您不必担心任何拒绝。

    -(NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewRowAction *button = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Delete" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
     //do whatever you want to do...
}

它很容易实现,您可以添加任意数量的按钮。此外,请实现以下委托方法以使此代码正常工作。

-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath

干杯..!!

【讨论】:

    猜你喜欢
    • 2011-08-23
    • 1970-01-01
    • 2013-04-03
    • 2022-10-14
    • 2016-04-30
    • 1970-01-01
    • 1970-01-01
    • 2021-04-11
    • 1970-01-01
    相关资源
    最近更新 更多