Create launch.sh
note: change the path to your neo-cli
#!/bin/sh
ps auxw | grep neo-cli | grep -v grep > /dev/null
if [ $? != 0 ]
thenCreate launch.sh
note: change the path to your neo-cli
#!/bin/sh
ps auxw | grep neo-cli | grep -v grep > /dev/null
if [ $? != 0 ]
then| UIColor* rgba(CGFloat r,CGFloat g,CGFloat b,CGFloat a){ | |
| return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]; | |
| } |
| [self.navigationController.navigationBar.subviews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { | |
| if ([obj isKindOfClass:NSClassFromString(@"_UINavigationBarBackground")]){ | |
| UIView* v = obj; | |
| [[v.subviews objectAtIndex:1] removeFromSuperview]; | |
| *stop=YES; | |
| } | |
| }]; |
| //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; |