Uiscrollview && UITableView Related Properties Summary

Source: Internet
Author: User

1, Uiscrollview:
Tracking//The value is yes when touch is not yet dragged, otherwise no
Zoombouncing//The value is yes when the content is enlarged to the maximum or minimum, otherwise NO
zooming//The value is yes when scaling, otherwise NO
decelerating//When scrolling, the finger is released but continues to scroll. This time is yes, other times no
Decelerationrate//Set the deceleration rate after the finger release
Maximumzoomscale//A floating-point number that indicates the maximum number of possible multiples
Minimumzoomscale//A floating-point number that represents the smallest possible multiplier
pagingenabled//The value is yes automatically scrolls to the Subview boundary. Default is No
scrollenabled//Decide whether you can scroll
Sview.contentsize = Cgsizemake (320*5,372);//scrolling range

Delayscontenttouches//Is a Boolean, when the value is yes, the user touches the beginning, scrollview to delay a while to see if the user has the intention to scroll. If scrolling, then capture the Touch-down event, otherwise it will not be captured. If the value is no, when the user touches the scroll view will immediately trigger TouchesShouldBegin:withEvent:inContentView:, the default is Yes

Cancancelcontenttouches//value is yes when the user touches and then does not move within a certain amount of time, ScrollView sends tracking events, and then the user moves the finger enough to trigger a scrolling event, this time, ScrollView sent Touchescancelled:withevent: to Subview, then Scroview started scrolling. If the value is No,scrollview sent tracking events, even if the user moves the finger, ScrollView will not scroll.

Contentsize//The size of the content, that is, the size can be scrolled, the default is 0, no scrolling effect.
Showshorizontalscrollindicator//Scroll if horizontal scroll bar is displayed
Showsverticalscrollindicator//Scroll if vertical scroll bar is displayed
Bounces//The default is yes, that is, rolling over the boundary will bounce back with the effect. If it is no, then scrolling to reach the border will stop immediately.
Bounceszoom//And bounces similar, the difference is: This effect is reflected in the scale above, if the scale exceeds the maximum scale, then the effect will rebound, if it is no, to reach the maximum or the smallest time immediately stop.

directionallockenabled//The default is NO, which can be simultaneously moving in both vertical and horizontal directions. When the value is yes, if the start is vertical or horizontal movement, then the next one will lock the scroll in another direction. If the start is the diagonal direction of rolling, it will not prohibit a direction
indicatorstyle//scroll bar style, basically just set the color. A total of 3 colors: default, Black, white
scrollindicatorinsets//Set scroll bar position

2,uitableview

tableview.bounces=no//Prohibit dragging

tableview.separatorstyle= uitableviewcellseparatorstylenone;//Remove Border

[cellviewsetselectionstyle:uitableviewcellselectionstylenone];//prohibit trigger click on a row

//implementation of a row of the selected effect (click on a row to change color, release or just change the color, click on the other lines this line of color disappears):
[cellview setbackgroundcolor:[uicolorclearcolor]];   
 

 cellview.selectedbackgroundview = [[[Uiviewalloc] initWithFrame:cellView.frame] AUTORELEASE];
 uiimageview *ia1=[[uiimageviewalloc]initwithframe:cgrectmake (0, 0, 280,];  

< Span style= "margin:0px; padding:0px; font-family: ' Lucida Grande ', Geneva, Arial, Verdana, Tahoma, Arial, Microsoft Jas Black, blackbody, Arial; line-height:25px; " >ia1.image=[uiimage imagenamed:@ "Ts_bg01.png"];

< Span style= "margin:0px; padding:0px; font-family: ' Lucida Grande ', Geneva, Arial, Verdana, Tahoma, Arial, Microsoft Jas Black, blackbody, Arial; line-height:25px; " >CELLVIEW.BACKGROUNDVIEW=IA1;
   

Uiimageview *ia2=[[uiimageviewalloc]initwithframe:cgrectmake (0, 0, 280, 170)];
ia2.image=[uiimageimagenamed:@ "Ts_bg02.png"];
cellview.selectedbackgroundview=ia2;

Uiscrollview && UITableView Related Properties Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.