Showing: 61 - 70 of 137 Articles

How to check internet is access or not when device connected with WIFI?

You can check internet is accessible or not when your device connected with WIFI with following code. You need to import Reachability.h & Reachability .m in Appdelegate class and do following code in didFinishLaunchingWithOptions: function. self.reachability = [Reachability reachabilityWithHostName:@”www.google.com”]; //self.reachability = [Reachability reachabilityForInternetConnection]; // Start Monitoring …

Change the titleLabel of UIButton which title type is Attributed in Storyboard / Xib file

Issue : I have use below code to change Title and set underline of UIButton at run time. [btnTemp setTitle:@”Test” forState:UIControlStateNormal]; I have got below issues: 1. Underline is not showing 2. Title not change 3. Title color is display default black. To overcome this …

Solution for MySQL Error : Host ‘host_name’ is blocked

If the following error occurs, it means that mysqld has received many connection requests from the given host that were interrupted in the middle: Host ‘host_name’ is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’ The value of the max_connect_errors system variable determines …

Firebase customise notification when app is in background or killed

Firebase will not call your onMessageReceived when your app is in background or killed, and you can’t customise your notification. System generated notification will show. to make firebase library to call your onMessageReived in every cases a) Foreground b) Background c) Killed you must not …