The cell object where the ios get button is located. Note: The difference between ios8 ios7 and ios8ios7

Source: Internet
Author: User

The cell object where the ios get button is located. Note: The difference between ios8 ios7 and ios8ios7

Ios7:

In ios7, the button. superview is the cell where the button is located.

NSLog (@ "2: cell ---- % @", button. superview );

10:23:55. 583 NeiHanShe [1407: 60b] 2: cell ---- <RadioCell: 0x155849d0; baseClass = UITableViewCell; frame = (0 0; 320 70); autoresize = W; layer = <CALayer: 0x1552af80>

In ios7, button. superview. superview is not a cell object.

NSLog (@ "2: cell ---- % @", button. superview. superview );

10:22:37. 993 NeiHanShe [1396: 60b] 2: cell ---- <UITableViewCellScrollView: 0x17d2d2e0; frame = (0 0; 320 70); autoresize = W + H; records = <NSArray: 0x17d2d200>; layer = <CALayer:


Ios8:

In ios8, the button. superview obtains the UITableViewWrapperView object. Therefore, if you click different cells but the obtained memory is equal, a problem occurs.

NSLog (@ "2: cell ---- % @", button. superview

10:27:07. 903 NeiHanShe [2791: 1186272] 2: cell ---- <UITableViewWrapperView:0x1663bbf0; Frame = (0 0; 320 528); gestureRecognizers = <NSArray: 0x1663bb10>; layer = <CALayer: 0x1663bbc0>; contentOffset: {0, 0}; contentSize: {320,528}>

10:27:09. 617 NeiHanShe [2791: 1186272] 2: cell ---- <UITableViewWrapperView:0x1663bbf0; Frame = (0 0; 320 528); gestureRecognizers = <NSArray: 0x1663bb10>; layer = <CALayer: 0x1663bbc0>; contentOffset: {0, 0}; contentSize: {320,528}>


In ios8, the button. superview. superview is the cell where the get button is located.

NSLog (@ "2: cell ---- % @", button. superview. superview );

10:20:50. 813 NeiHanShe [2775: 1184682] 2: cell ---- <RadioCell:0x16ed6a30; BaseClass = UITableViewCell; frame = (0 0; 320 70); autoresize = W; layer = <CALayer: 0x16ea5fc0>

10:20:52. 321 NeiHanShe [2775: 1184682] 2: cell ---- <RadioCell:0x16ed6b44; BaseClass = UITableViewCell; frame = (0 0; 320 70); autoresize = W; layer = <CALayer: 0x16ea5fc0>


IOS7 and iOS8, from Apple's new iOS 7 12, we can see that Apple's focus is no longer on iOS 7, iO

IPhone 4 has been around for four years.

What is the difference between the image on the Ios8 system interface and ios7?

Some built-in software is added.
 

Related Article

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.