如何在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尚未发布,您必须在苹果开发者论坛上询问。