UIBARButonItem에서 자체 제작 이미지를 설정하면 파란색으로 칠해지는 문제
                                            
                                                
                                                
                                                
                                                
                                                
                                                 2077 단어  iOS
                    
오늘의 결론 
UIImage는imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)이미지 생성
↓↓ 예↓↓↓let button = UIBarButtonItem()
button.image = UIImage(named: "xxxxx.png")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
button.style = UIBarButtonItemStyle.Plain
button.action = "hogehogehoge:"
button.target = self
self.navigationItem.rightBarButtonItem = addButton
배경. 
문제.
 
UIBARButtonItem에서 자체 제작pg 파일 설정
다음 그림에서 보듯이 파란색으로 칠한 단추를 보여 줍니다.
 
 
까닭
 
iOS 7 이후에는 기본적으로 tintColor 색상 채우기로 설정됩니다.
http://program.station.ez-net.jp/special/handbook/objective-c/xcode5/button.asp
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(UIBARButonItem에서 자체 제작 이미지를 설정하면 파란색으로 칠해지는 문제), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/marusa/items/425a01e76f1aae511679
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
let button = UIBarButtonItem()
button.image = UIImage(named: "xxxxx.png")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
button.style = UIBarButtonItemStyle.Plain
button.action = "hogehogehoge:"
button.target = self
self.navigationItem.rightBarButtonItem = addButton
문제.
UIBARButtonItem에서 자체 제작pg 파일 설정
다음 그림에서 보듯이 파란색으로 칠한 단추를 보여 줍니다.
 
 까닭
iOS 7 이후에는 기본적으로 tintColor 색상 채우기로 설정됩니다.
http://program.station.ez-net.jp/special/handbook/objective-c/xcode5/button.asp
Reference
이 문제에 관하여(UIBARButonItem에서 자체 제작 이미지를 설정하면 파란색으로 칠해지는 문제), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/marusa/items/425a01e76f1aae511679텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)