skip to Main Content

Xcode – Objective-C warning: Class 'ViewController' does not conform to protocol 'CBPeripheralManagerDelegate'

I'm trying to create an Obj-C, CoreBluetooth virtual peripheral app and get this warning. // // ViewController.h // sim_backend_empty3 // // #import <UIKit/UIKit.h> #import <CoreBluetooth/CoreBluetooth.h> @interface ViewController : UIViewController <CBPeripheralManagerDelegate> @property (nonatomic, strong) CBPeripheralManager *peripheralManager; @end // // ViewController.m //…

VIEW QUESTION

Xcode – How to do push navigation with Notification Observer?

I have two classes. A and B for example. I have created an observer in A like this - (void)viewDidLoad [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(somethingHappens:) name:@"notificationName" object:nil]; } -(void)somethingHappens:(NSNotification*)notification { NavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"contentViewController"]; UIViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"loyaltyVC"]; navigationController.viewControllers…

VIEW QUESTION
Back To Top
Search