LeoNatan/LNNotificationsUI

Getting error in iOS9 dispatch_once

miscventura opened this issue · 4 comments

I'm getting an invoke_block error in iOS9 at the code below. Will this code be optimized for use in iOS9? Thanks.
LNNotificationAppSettings.h
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
LNNotificationAppSettings* __strong* rv = (LNNotificationAppSettings*_)&LNNotificationDefaultAppSettings;
*rv = [LNNotificationAppSettings new];
(_rv).alertStyle = LNNotificationAlertStyleBanner;
(*rv).soundEnabled = YES;
});

@LeoNatan ,@miscventura

did any1 Find Solution for this issue ????

app is crash instantly... please share your solution.. need help

screen shot 2015-09-28 at 2 54 34 pm

Drag the entire xcode project into your own project. Then embed binary the LNNotificationsUI.framework file.

Working for me on iOS 9.0.1 .

Great! Thanks for the reply.
I got mine working by changing things around a bit.
Not having any issues anymore.

#import "LNNotificationAppSettings.h"
screen shot 2015-09-30 at 4 48 34 am
#import "LNNotificationAppSettings.m"
screen shot 2015-09-30 at 4 49 57 am

BTW, I am not seeing an error on iOS 9.