Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/121.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在iOS 8中的交互式通知中添加文本字段_Ios - Fatal编程技术网

如何在iOS 8中的交互式通知中添加文本字段

如何在iOS 8中的交互式通知中添加文本字段,ios,Ios,我正在开发一个应用程序。这将具有交互式通知。如果应用程序收到推送通知,且应用程序未在前台运行,则用户应能够通过通知中心中的通知进行回复。我想添加文本字段以从用户处获取文本,并添加回复按钮以将文本发送到应用程序 你知道怎么做吗?我可以通过UIMutableNotificationAction类添加按钮。但找不到添加文本字段的方法。对于Xcode6 GM和iOS8 GM版本。没有向交互式**通知添加文本字段的选项 NS_CLASS_AVAILABLE_IOS(8_0) @interface U

我正在开发一个应用程序。这将具有交互式通知。如果应用程序收到推送通知,且应用程序未在前台运行,则用户应能够通过通知中心中的通知进行回复。我想添加文本字段以从用户处获取文本,并添加回复按钮以将文本发送到应用程序


你知道怎么做吗?我可以通过UIMutableNotificationAction类添加按钮。但找不到添加文本字段的方法。

对于Xcode6 GM和iOS8 GM版本。没有向交互式**通知添加文本字段的选项

 NS_CLASS_AVAILABLE_IOS(8_0)
  @interface UIMutableUserNotificationAction : UIUserNotificationAction
  // The unique identifier for this action.
  @property (nonatomic, copy) NSString *identifier;

  // The localized title to display for this action.
  @property (nonatomic, copy) NSString *title;
  // How the application should be activated in response to the action.
  @property (nonatomic, assign) UIUserNotificationActivationMode activationMode;
  // Whether this action is secure and should require unlocking before being performed.    If the activation mode is UIUserNotificationActivationModeForeground, then the action is considered secure and this property is ignored.
  @property (nonatomic, assign, getter=isAuthenticationRequired) BOOL authenticationRequired;
  // Whether this action should be indicated as destructive when displayed.
  @property (nonatomic, assign, getter=isDestructive) BOOL destructive;
  @end
有关更多详细信息,请参阅以下链接:

据我所知,iOS 8尚未发布,您必须在苹果开发者论坛上询问。