wift: Login to WordPress from your iOS App

Swift: Login to WordPress from your iOS App

Drupal Module







(important module similar to pathauto)


Setting BOLD font on iOS UILabel

myLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];

If you wanna set it programmatically,you must check bold type is support or not in iOS, normally Bold or Italic will have format FontName-Bold, FontName-Italic, FontName-BoldItalic.

Now, write a bold function

-(void)boldFontForLabel:(UILabel *)label{
    UIFont *currentFont = label.font;
    UIFont *newFont = [UIFont fontWithName:[NSString stringWithFormat:@"%@-Bold",currentFont.fontName] size:currentFont.pointSize];
    label.font = newFont;

Then call it

[self boldFontForLabel:yourLabel];


[Android] adb is down (Mac OSX)

Sometimes you may get an error as the following….
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at “sdk\platform-tools\" and can be executed.

if you are using terminal input : adb start-server….

* daemon not running. starting it now on port 5037 *
cannot bind ‘tcp:5037’
ADB server didn’t ACK

Yes, because port:5037 is occupied by other process

Let’s see who are using it…

lsof -i | grep LISTEN

Close the eclipse FIRST!

last time I had  a “zombile" adb is occupied, then kill it: killall adb

and start new adb
adb kill-server
adb start-server
You will see….

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

and you can see the devices that are connected by….

adb devices

Similar post…