Feeding Data to YourTables

Where the table gets its data,  and how you get it here.

An initial look at how the talbe handles interaction

how the table keeps track of sections and cells

an overview of the architecture patterns that the UITableView classes exploit

abstract and theoretical but sticking with it is worthwhile

UITableView and Delegation

is a pretty puny creature

relies on external support for pretty much everything else.

by passing off the UITableView's responsibility for other functions 

to external objects

 

UISlider

smoothly adjust values

minimunValue,  maximumValue, initial Vlaue

customize the appearance of the slider,

includeing specifying customized track image and thumb images.

images to place on either end of the UISlider to help represent your maximum and minimum values using the 

minimumVlueImage   maximumValueImage

-addTarget:action:forControlEvents

[self.mySlider addTarget:self action:@selector(valueChanged:)

forControlEvents:UIControlEventValueChanged];

continuous,   which determines whether the value

changes are reorted continuouly .

setValue:animated:method

UISwitch

Boolean value,   

setOn:animated:

UIActivityIndicatorView

downloading file s from a server or even simply

a task dealing with a large amout of data requiring some significant amout of time to complete

in progress not in progress.

startAnimating and stopAnimating 

isAnimating  hideWhenStopped 

only the color and size.

activityIndicatorViewStyle   

UIActivityIndicatorViewStyleWhiteLarge

UIProgressView

scaling between 0 and 1,

UIActivityIndicatorView

with a style   

UIProgressViewStyleDefault:

UIPorogressViewStyleBar

progress

setProgress

progressTintColor   progressImage, trackTintColor and trackImage

UIPageControl

currentPage and numberOfPages. hidesForSinglePage

UIPageControl 

addTarget:selector:forControlEvents

defersCurrentPageDisplay 

sizeForNumbersOfPages    

posted @ 2012-11-11 21:06  顺武  阅读(142)  评论(0编辑  收藏  举报