This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Styles for p, div or span with nice FamFamFam icons, to use around a link*/ | |
.add {font-size: 12px; background: url('/images/icons/add.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} | |
.new_password {font-size: 12px; background: url('/images/icons/lock_go.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} | |
.ok {font-size: 12px; background: url('/images/icons/accept.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} | |
.edit {font-size: 12px; background: url('/images/icons/pencil.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} | |
.delete {font-size: 12px; background: url('/images/icons/delete.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} | |
.show {font-size: 12px; background: url('/images/icons/magnifier.png') 0 0 no-repeat; padding-left: 18px; line-height: 16px; font-weight: normal;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//picker is ABPeoplePickerNavigationController | |
[self presentModalViewController:picker animated:YES]; | |
UIButton* backButton= [[UIButton alloc]initWithFrame:CGRectMake(9, 25, 35, 35)]; | |
[backButton setImage:[UIImage imageNamed:@"btnBack.png"] forState:UIControlStateNormal]; | |
[backButton addTarget:picker.topViewController.navigationItem.rightBarButtonItem.target action:picker.topViewController.navigationItem.rightBarButtonItem.action forControlEvents:UIControlEventTouchUpInside]; | |
[picker.navigationBar.superview addSubview:backButton]; | |
//or you can use leftBarButtonItem instead of UIButton | |
//picker.topViewController.navigationItem.leftBarButtonItem= [[UIBarButtonItem alloc]initWithCustomView:backButton]; | |
picker.topViewController.navigationItem.rightBarButtonItem=nil; |