Mover view

    CGRect posicion;
   
    posicion.origin.y = self.view.frame.size.height;
    posicion.origin.x = 0;
    posicion.size.width = self.view.frame.size.width;
    posicion.size.height = self.view.frame.size.height;
   
    [UIView animateWithDuration:0.75
                          delay:0
                        options: UIViewAnimationOptionAllowAnimatedContent
                     animations:^{
                         viewAMover.frame = posicion;
                     }
                     completion:^(BOOL finished){
                     }];

Poner negrita en diferentes palabras de una UILabel

	const CGFloat fontSize = 14;
	NSDictionary *attrs = @{
							NSFontAttributeName:[UIFont boldSystemFontOfSize:fontSize],
							NSForegroundColorAttributeName:[UIColor blackColor]
							};
	NSDictionary *subAttrs = @{
							   NSFontAttributeName:[UIFont systemFontOfSize:fontSize]
							   };
	
	const NSRange range = NSMakeRange(5,3);
	
	NSMutableAttributedString *attributedText =
	[[NSMutableAttributedString alloc] initWithString:@"El veloz murciélago hindú"
										   attributes:attrs];
	[attributedText setAttributes:subAttrs range:range];
	
	[textUILabel setAttributedText: attributedText];

Cambiar los colores al pulsar una fila de un UITableView

  • Cambiar el color al hacer click sobre una fila
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
        UIView *bgColorView = [[UIView alloc] init];
        bgColorView.backgroundColor = [UIColor redColor];
        [celda setSelectedBackgroundView:bgColorView];
  • Cambiar el color al soltar el click sobre una fila
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
   
    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
    cell.contentView.backgroundColor = [UIColor yellowColor];