[MKInfoPanel showPanelInView:self.view type:MKInfoPanelTypeError title:@"Network Failure!" subtitle:@"Check your internet connection and try again later!" hideAfter:2];
Instructions on how to use is on my blog, here
The code is licensed under zLib license. That means, in a nut shell, you can do whatever you want, commercial/non-commercial without mis-attributing the source/original author.