Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Getting error in iOS9 dispatch_once #24

Closed
miscventura opened this issue Sep 19, 2015 · 4 comments
Closed

Getting error in iOS9 dispatch_once #24

miscventura opened this issue Sep 19, 2015 · 4 comments

Comments

@miscventura
Copy link

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;
});

@mehulparmar4ever
Copy link

@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

@rogcui
Copy link

rogcui commented Sep 29, 2015

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

Working for me on iOS 9.0.1 .

@miscventura
Copy link
Author

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

@LeoNatan
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants