Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了我的第一个推送应用程序,但通过将推送数据传递给我的 viewController 时遇到了问题。我想为每个新的推送通知在我的 tableviewController 中创建并显示一个新单元格。我不知道我该怎么做..
您可以做的是,利用以下功能
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
在 AppDelegate 中添加该函数并实现将对象/数据添加到集合的逻辑,这将进一步用于在 tableViewController 中显示行。