ajerez / ajnotificationview Goto Github PK
View Code? Open in Web Editor NEWNotice component for iOS (UNMAINTAINED CODE)
License: MIT License
Notice component for iOS (UNMAINTAINED CODE)
License: MIT License
Could u do a style with a white background?
I found that when you segue from one view controller to another, and have any unfinished notifications, it takes a while for new notifications to appear in the new view controller. Using the -hide method didn't resolve this issue.
So, I added a class method which you can use to manually clear global notification queue when you switch between view controllers. This made all my notifications appear at the right times on iOS 6.
(Class Method) (AJNotificationView *)clearNotificationQueue {
notificationQueue = nil;
return nil;
}
the demo project when run in landscape mode causes the notification view to not display correctly.. it flies from right to left and goes off screen
Currently the text does not take into account of the region occupied by the detail disclosure when it is shown. To see the issue, either reproduce it as follow or see the image attached below.
For example, using the sample demo project. Change the default text from "Detail disclosure notification" to "Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. ", like so:
- (IBAction)showOrangeNotificationWithoutlines:(id)sender {
[AJNotificationView showNoticeInView:self.view
type:AJNotificationTypeBlue
title:@"Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. "
linedBackground:AJLinedBackgroundTypeAnimated
hideAfter:2.5f offset:0.0f delay:0.0f detailDisclosure:YES
response:^{
NSLog(@"Response block");
}
];
}
If you push a second view while the first view is displaying a AJNotification will make it stop working. No other AJNotification will be shown until you restart the app.
The only work around I found is to use:
hideCurrentNotificationViewAndClearQueue
That was my fault
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.