Comments (9)
Could you post the code you use to initialize the alert? I'm not able to reproduce in the sample project by just leaving the title empty.
from sdcalertview.
Sorry for the delay. Here's the code:
A method on the Root (container) view controller:
- (void)presentMessage:(NSString *)message
{
dispatch_async(dispatch_get_main_queue(), ^
{
SDCAlertController
*alert = [SDCAlertController alertControllerWithTitle:nil message:message preferredStyle:SDCAlertControllerStyleAlert];
[alert setVisualStyle:[INFAlertStyle style]];
[alert addAction:[SDCAlertAction actionWithTitle:@"OK" style:SDCAlertActionStyleDefault handler:nil]];
[alert presentWithCompletion:nil];
});
}
And here's the stack:
2014-10-20 17:03:27.123 Infiniti[247:12504] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSConcreteAttributedString initWithString:: nil value'
*** First throw call stack:
from sdcalertview.
Thank you, very helpful. I'll investigate and let you know!
from sdcalertview.
👍
from sdcalertview.
I wish attributed strings would just take a nil
string when allocated...
Anyway, fixed now, will release a CocoaPods update shortly. Thanks for your input and fast response time!
from sdcalertview.
You're welcome. Thanks for the great library. Will send some details of our app when published.
from sdcalertview.
Ah yeah, I'm very interested! Can never really tell if an app uses it or not. Maybe I should edit the license to require attribution..
from sdcalertview.
We use the Apache 2.0 license for our projects. It has an attribution clause, but even if the App complies strictly with this, and displays license info (like iOS' "General/About in settings does) we'd still have to check each app individually. . . the information does not necessarily feed back.
Also I think it would be a disincentive for some users. . Still, you're certainly within your rights (both legally and in an ethical sense) to ask for this if it interests you.
from sdcalertview.
Yeah, I don't want it to disincentivize people from using the library. Maybe I'll just add a "Attribution is much appreciated" text to the README or something.
from sdcalertview.
Related Issues (20)
- Swift 4.2 and Xcode 10.1 Compilation Issue HOT 2
- Convert to Swift 5 HOT 1
- SPM support HOT 7
- [Question] Exclude view from being dimmed HOT 1
- Error with Catalyst HOT 2
- AttributedTitle of AlertAction does not apply (Color, font, etc...) with ActionSheet
- Example app crash on iPad presenting UIAlertController
- Readme.md images cannot be loaded
- Evaluate support to popover ActionSheet on iPad HOT 3
- ActionSheet custom view vertical alignment
- Open components to inheritance outside SDCAlertView module HOT 4
- Rounded corners are circles instead of squircles
- Different look for dark theme in ios 13 and ios 12 HOT 6
- AlertController with preferredStyle of .actionSheet Does Not Correctly Display attributedTitle or attributedMessage
- Crash on iOS 15 HOT 2
- How to perform height animation on contentView correctly? HOT 1
- Warning when showing AlertView with textfield
- override var supportedInterfaceOrientations: UIInterfaceOrientationMask HOT 1
- Crash on tintColorDidChange HOT 1
- Privacy manifest required by Apple HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdcalertview.