The Gcdiscreetnotificationview class library function is to display a current state as a notification view without blocking the user from interacting with the device application.
Gcdiscreetnotificationview class Library Download address Https://github.com/gcamp/GCDiscreetNotificationView
On the open source China iOS client, when the network is not available,
Our commonly used notification may be a uialertview warning that the current network is not connected, forcing the user to make a choice, and the coercion must be unpleasant. This is one of the advantages of the Gcdiscreetnotificationview class library comparison;
on how to use the Gcdiscreetnotificationview third party library, the development class library is encapsulated in a tool Class (Helper folder) in the open source China iOS client.
+ (void) Toastnotification: (NSString *) text Andview: (UIView *) View andloading: (bool) isloading Andisbottom: (BOOL) Isbottom
{
Gcdiscreetnotificationview *notificationview = [[Gcdiscreetnotificationview alloc] InitWithText: Text showactivity:isloading Inpresentationmode:isbottom? Gcdiscreetnotificationviewpresentationmodebottom:gcdiscreetnotificationviewpresentationmodetop InView:view];
[Notificationview Show:yes];
[Notificationview hideanimatedafter:2.6];
}