UIButton *button = ...


UIBarButtonItem *customBarItem = [[UIBarButtonItem alloc] initWithCustomView:button];

self.navigationItem.leftBarButtonItem = customBarItem;


Posted by tenn
,

CGAffineTransform myTransform = CGAffineTransformMakeRotation(
M_PI);

UIBarButtonItem * currentItem =  self.navigationItem.leftBarButtonItem;

currentItem.customView.transform = myTransform;


self.navigationItem.leftBarButtonItem.customView.layer.anchorPoint = CGPointMake(0.6, 0.7);



//anchorPoint 회전축. 0.5 0.5가 초기치인듯. 

Posted by tenn
,



    NSMutableDictionary *dic1 = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"1",@"one",@"2",@"two", nil];

    NSDictionary *dic2 = [[NSDictionary alloc] initWithObjectsAndKeys:@"3",@"three",@"4",@"four", nil];

    

    [dic1 addEntriesFromDictionary:dic2];




***결과

{

    four = 4;

    one = 1;

    three = 3;

    two = 2;

}

Posted by tenn
,