Difference between revisions of "SBBulletinBannerController"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "SBBulletinBannerController can be used to post notifications to the user from a substrate tweak. <source lang="objc"> BBBulletinRequest *bulletin = [[BBBulletinRequest alloc]...")
 
Line 1: Line 1:
SBBulletinBannerController can be used to post notifications to the user from a substrate tweak.
+
SBBulletinBannerController can be used to post notifications to the user from a substrate tweak running inside Springboard.
  
 
<source lang="objc">
 
<source lang="objc">

Revision as of 21:43, 23 April 2015

SBBulletinBannerController can be used to post notifications to the user from a substrate tweak running inside Springboard.

BBBulletinRequest *bulletin = [[BBBulletinRequest alloc] init];  
bulletin.sectionID =  @"com.application.identifier";  
bulletin.title =  @"Title";  
bulletin.message  = @"Message";  
bulletin.date = [NSDate date];  
SBBulletinBannerController *controller = [%c(SBBulletinBannerController) sharedInstance]; 
[controller observer:nil addBulletin:bulletin forFeed:2];