NSString *passStr = @"Key:";
// CGSize nameSize = [nameStr sizeWithFont:font1];
CGSize nameSize = [nameStr sizeWithAttributes:@{NSFontAttributeName: font1}];//ios7
UILabel *userlab = [[UILabel alloc] initWithFrame:CGRectMake(380, 350, nameSize.width, nameSize.height)];