A NSBundle category for adding / removing the bundle to LoginItems.
#import <NSBundle+LoginItem/NSbundle+LoginItem.h>
// Add current application to LoginItems
[[NSBundle mainBundle] enableLoginItem];
// Remove current application from LoginItems
[[NSBundle mainBundle] disableLoginItem];
NSBundle+LoginItem is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "NSBundle+LoginItem"
Tom Li, [email protected]
NSBundle+LoginItem is available under the MIT license. See the LICENSE file for more info.