TAILIEUCHUNG - Praise for The iPhone Developer’s Cookbook 2nd phần 4

Trong tất cả các quán bar iPhone, chỉ có các lớp học UIToolbar có nghĩa là sử dụng trực tiếp. Nó cung cấp một loạt các nút tương tự như điều khiển phân đoạn, nhưng với một cái nhìn khác nhau (xem hình 4-3, dưới) Thanh công cụ được giới hạn trong một vai trò tạm thời làm nổi bật | Display and Interaction Traits 235 define PI - void loadView contentview UlView alloc initWithFrame CGRectMake contentView setCenter CGPointMake contentView setBackgroundColor UIColor blackColor contentView setTransform CGAffineTransformMakeRotation PI contentView contentView release For the most part it s far easier using UIViewControllers to work with reorientation events than manually rotating and presenting manual view rotation does not change the status bar orientation nor the keyboard orientation. Chapter 4 discusses view controllers and reorientation in depth. Display and Interaction Traits In addition to physical screen layout the UIView class provides properties that control how your view appears onscreen and whether users can interact with it. Every view uses a translucency factor alpha that ranges between opaque and transparent. Adjust this by issuing myView setAlpha value where the alpha values falls between fully transparent and fully opaque .This is a great way to hide views and to fade them in and out onscreen. You can assign a color to the background of any view. myView setBackgroundColor UIColor redColor colors your view red for property affects different view classes in different ways depending on whether those views contain subviews that block the background. Create a transparent background by setting the view s background color to clear . UIColor clearColor . Every view however offers a background color property regardless of whether you can see the background. Using bright contrasting background colors is great way to visually see the true extents you re new to iPhone development coloring in views offers a concrete sense of what is and is not onscreen and where each component is located. The userInteractionEnabled property controls whether users can touch and interact with a given view. For most views this property defaults to

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.