이것은 단지 2 개의 이미지입니다. 그림자없이 하나 하나 ...
당신은 UIEdgeInsets 읽기 작업 방법을 알고 예를
UIImage *buttonImage = [[UIImage imageNamed:@"yourImage"]
resizableImageWithCapInsets:UIEdgeInsetsMake(1, 11, 0, 20)];
를 들어
그들을 크기를 조정할 수 있도록 CapInsets 이러한 이미지를 만들 수 있습니다 How does UIEdgeInsetsMake work?
또는 문서에서 :
UIEdgeInsetsMake
Creates an edge inset for a button or view.
UIEdgeInsets UIEdgeInsetsMake (
CGFloat top,
CGFloat left,
CGFloat bottom,
CGFloat right
);
Parameters
top
The inset at the top of an object.
left
The inset on the left of an object
bottom
The inset on the bottom of an object.
right
The inset on the right of an object.
Return Value
An inset for a button or view
Discussion
An inset is a margin around the drawing rectangle where each side (left, right, top, and bottom) can have a different value.
Availability
Available in iOS 2.0 and later.
See Also
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html
부분적으로 '모든 곳'세그먼트 이상에서 시작되는 광택 효과를 의미합니까? –
아니요. 제가 그리기 원하는 것은 위의 이미지입니다. 아래쪽 이미지는 가죽 배경으로 작업 할 때 위와 같은 모양입니다. 하단 광택, 상단 내부 그림자 및 위에서 아래로의 부분 그라데이션처럼이 이미지에서 사용 된 효과 및 효과를 볼 수 없습니다. –
"효과"가 없으며 디자이너가 Photoshop에서 만든 이미지 일 가능성이 큽니다. –