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

chương, Hình 4-3 (mới nhất) cho thấy một ví dụ UITabBar điển hình. Thanh tìm kiếm (UISearchBar) thêm một cái nhìn dựa trên văn bản có nghĩa là để được hiển thị trên thanh điều hướng hàng đầu của một bảng, được sử dụng trong các liên lạc với những thanh điều hướng, bạn thường làm việc thông qua UITabBarControllers | UIViewControllers 147 chapter Figure 4-3 top shows a typical UITabBar instance. Search bars UISearchBar add a text-based view meant to be shown on the top navigation bar of a table as used in the Contacts application. As with navigation bars you normally work through UITabBarControllers and UISearchDisplayControllers instead of building and managing the view directly. Of all the iPhone bars only the UlToolbar class is meant for direct use. It provides a series of buttons similar to segmented controls but with a different look see Figure 4-3 bottom .Toolbars are limited to a momentary highlighting role of toolbars is to provide a vocabulary of actions that act on the current view. The toolbar used in the Mail application allows you to delete messages or to reply to messages. Toolbars present monochrome images on each button. If your design ideas include tab bars and toolbars take the time to read Apple s Human Interface Guidelines available as part of the standard iPhone documentation library. Apple regularly rejects applications that use bars in a manner inconsistent with these guidelines. Note As with bar button Items navigation items appear in Interface Builder and can be placed in your projects as you would place views. Like their cousins navigation items are not views themselves. They store information about what items go on navigation bars and are used to build the bar that does appear. Progress and Activity Cocoa Touch provides two classes meant to communicate an ongoing activity to the user. The UlActivitylndicatorView offers a spinning-style wheel which is shown during an ongoing wheel tells the user that the task may finish at some point but it does not determine when that time will end. When you want to communicate progress to a user use the UlProgressView class. Instances offer a bar that fills from left to right indicating how far a task has progressed. UlViewControllers On the iPhone view controllers centralize certain kinds of view

Đã 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.