TAILIEUCHUNG - iOS App Programming Guide phần 9

Nếu người dùng chọn để lưu các phiên bản xung đột dưới một tên khác nhau, tạo ra các tập tin mới với những nội dung của phiên bản xung với mỗi đối tượng phiên bản tập tin, thực hiện bất cứ hành động cần thiết để giải quyết cuộc xung đột. | CHAPTER 6 Advanced App Tricks For example to indicate that you want your app to launch in a portrait orientation on iPhone and iPod touch devices but in landscape-right on iPad you would configure your with the following keys key UIInterfaceOrientation key string UIInterfaceOrientationPortrait string key UIInterfaceOrientation ipad key string UIInterfaceOrientationLandscapeRight string Notice that in the preceding example there is an iPad-specific key and a default key without any device modifiers. Continue to use the default key to specify the most common or default value and add a specific version with a device-specific modifier when you need to change that value. This guarantees that there is always a value available for the system to examine. For example if you were to replace the default key with an iPhone-specific and iPad-specific version of the UIInterfaceOrientation key the system would not know the preferred starting orientation for iPod devices. For more information about the keys you can include in your file see Information Property List Key Reference Implementing Your View Controllers and Views The largest amount of effort that goes into creating universal apps is designing your user interface. Because of the different screen sizes apps often need completely separate versions of their interface for each device idiom. This means creating new view hierarchies but might also mean creating completely different view controller objects to manage those views. For views the main modification is to redesign your view layouts to support the larger screen. Simply scaling existing views may work but often does not yield the best results. Your new interface should make use of the available space and take advantage of new interface elements where appropriate. Doing so is more likely to result in an interface that feels more natural to the user and not just an iPhone app on a larger screen. For view controllers follow these guidelines Consider .

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.