반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- SwiftUI
- @Environment
- nonisolated
- RFC1738/1808
- @State
- Creating Operators
- @EnvironmentObject
- init?
- init
- dismiss
- Operater
- IOS
- URL(string:)
- SWIFT
- swift6
- Bug
- nestjs
- RxSwift
- subject
- ios14
- RxCocoa
- graphql
- NullObject
- operator
- Operators
- Xcode
- NavigationLink
- vim
- typeorm
- @Binding
Archives
- Today
- Total
Tunko Development Diary
UISearchBar 테두리 없애는 방법 본문
약간의 편법일 수 있다.
하지만 유일하게 통한 방법
@IBOutlet var searchBar: SearchBar!
let searBarImage = UIImage()
searchBar.backgroundImage \= searBarImage
서치바 레이아웃과 동일하게 UIView 를 겹치고 그뒤에 백그라운드 색상을 원하는대로 설정한다.
UIImage를 생성하고 백그라운드 이미지에 적용하면 투명해진다.
하지만
백 그라운드가 흰색으로 남게 된다.
때문에 UIView를 겹쳐서 색상 처리를 하면 이런 결과물이 나온다.
반응형
'Development > iOS 개발' 카테고리의 다른 글
[iOS][swift]App version정보 가져오기 (0) | 2020.01.02 |
---|---|
[iOS][swift] 앱스토어로 보내기 (0) | 2020.01.02 |
[iOS][swift] UITableView 화면에 보이는 Cell 새로고침 (0) | 2020.01.02 |
[iOS][swift] PageviewController 사용하기 (0) | 2020.01.02 |
[iOS][swift] ScreenSize 가져오기 (0) | 2020.01.02 |
Comments