Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to implement the ADLivelyTableView class in a project that uses ARC
    primarykey
    data
    text
    <p>I have gone through the ADLivelyTableView demo project but have not been able to import the ADLivelyTableView h and m files into my project successfully. It appears that the main issue is to do with ARC. I have experimented by converting the demo project into arc, specifically but converting just the LDMasterView.m file, and this simply removes all references to releasing objects, and so after this conversion, the use ARC option under build settings is now ON and the app works. So i figured that the ADLivelyTableView .m and .h files dont need converting, but when these are imported into my project, i get all sorts of ARC errors for these two blocks of code:</p> <pre><code> if (block != _transformBlock) { Block_release(_transformBlock); _transformBlock = Block_copy(block); } } </code></pre> <p>and </p> <pre><code>@implementation ADLivelyTableView - (void)dealloc { Block_release(_transformBlock); [super dealloc]; } </code></pre> <p>I dont get why these errors didnt show when turning on ARC in the demo project. id prefer finding a solution rather than trying to import my entire application to the demo project instead! The errors are as follows:</p> <pre><code>ARC Casting Rules: Cast of block pointer type 'ADLivelyTransform (aka NSTimeINterval (^)CALayer*_strong, float) to C pointer type 'const void *' required a bridged cast. ARC Casting Rules: Cast of C Pointer ....(Same as above) </code></pre> <p>Also, once this issue is resolved, it is supposed to be as simple as just importing the ADLivelyTableView .h and .m files and then adding the line :</p> <pre><code>ADLivelyTableView * livelyTableView = (ADLivelyTableView *)self.tableView; livelyTableView.initialCellTransformBlock = ADLivelyTransformFan; </code></pre> <p>into my viewDidLoad section? or is that bit supposed to be edited for my specific table?</p> <p>Thanks for your help, Regards, Rami</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload