NSString *offerName = [dictSetdata objectForKey:@”offerName”];

    NSString *offerDescription = [NSString stringWithFormat:@”\n\n%@”,[dictSetdata objectForKey:@”offerDescription”]];



    NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:offerName];

    NSRange newRange = NSMakeRange(0, string.length);

    [string addAttribute:NSFontAttributeName value:[UIFont fontWithName:lblDescriptionFont size:14.0f] range:newRange];


    NSMutableAttributedString * stringDEsc = [[NSMutableAttributedString alloc] initWithString:offerDescription];

    NSRange newRange1 = NSMakeRange(0, stringDEsc.length);

    [stringDEsc addAttribute:NSFontAttributeName value:[UIFont fontWithName:lblAddressFont size:14.0f] range:newRange1];

    [string appendAttributedString:stringDEsc ];


    [self.txtOfferName setAttributedText:string];

    [self.txtOfferName setTextAlignment:NSTextAlignmentCenter];


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s