本地推送

1.創建開關如圖操作 2.開關爲OFF 3.拖拽後Connection選擇Action 4.Type選擇UISwitch 5.ViewController中點擊開關按鈕 if(sender.on == YES){ UILocalNotification *local=[[UILocalNotification alloc]init]; //設置通知的標題
相關文章
相關標籤/搜索