How can I make text in a UILabel shrink font size

descriptionLabel.adjustsFontSizeToFitWidth = YES; descriptionLabel.minimumFontSize = 10.0; //adjust to preference obviously The following example is tested and verified on iPhone Simulator 3.1.2: UILabel *descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(90, 0, 200, 30)]; descriptionLabel.font = [UIFont systemFontOfSize:14.0]; descriptionLabel.minimumFontSize = 10.0; descriptionLabel.adjustsFontSizeToFitWidth = YES; descriptionLabel.numberOfLines = 1; descriptionLabel.text = @”supercalifragilisticexpialidocious even thought he sound of it is something quite … Read more

How can I create Yosemite-style view with translucent/blurry background?

w00t! I’ve found example code that uses not-yet-documented view type: Set XIB’s deployment target to 10.10 Embed your view in NSVisualEffectView In Interface Builder’s settings for the view set appearance to “Vibrant Light/Dark”. There are other options, like blending “Behind Window” or “Within Window” (the latter requires layers). There’s also NSView method allowsVibrancy that you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)