To check whether network connection is available or not in your iphone/ipad