1
나는이 광택 효과가 UINavigationBar
의 상단에있는 UIButton
클릭있을 때 : 나는 다른 버튼이 효과를 추가 할 수있는 방법광택 효과 UINavigationBar 버튼을 클릭하면
을 그 왼쪽 또는 오른쪽 버튼 항목이 아닌 UINavigatonBar
에 있습니까? 이렇게 :
UIButton * emptyButton = [UIButton buttonWithType:UIButtonTypeCustom];
[emptyButton setFrame:CGRectMake(119, 5, 82, 35)];
[emptyButton addTarget:self action:@selector(centerNavigationBarTitleClicked:) forControlEvents:UIControlEventTouchUpInside];
[emptyButton setBackgroundColor:[UIColor clearColor]];
[self.navigationController.navigationBar addSubview:emptyButton];
감사합니다!
감사 남자, 좋은 작품! –