SBBulletinBannerController

From iPhone Development Wiki
Revision as of 21:42, 23 April 2015 by Ryanb93 (talk | contribs) (Created page with "SBBulletinBannerController can be used to post notifications to the user from a substrate tweak. <source lang="objc"> BBBulletinRequest *bulletin = [[BBBulletinRequest alloc]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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];