evadne / RAPageViewController

Sliding pages side by side, infinitely. Fancy parts from the redacted bits, re-implemented for expressiveness at expense of some naïvety
77 stars 5 forks source link

is not 5.0-compatible? #5

Open bitwolaiye opened 11 years ago

bitwolaiye commented 11 years ago

I merge this project with PSTCollectionView (https://github.com/steipete/PSTCollectionView ) code in my repo https://github.com/bitwolaiye/RAPageViewController thanks to evadne.

jstart commented 11 years ago

:+1: should be merged to support 5.0

evadne commented 11 years ago

Yay @bitwolaiye @jstart — thank you all!

I’ll take a look and merge.

evadne commented 11 years ago

Took a look. I have several concerns and wish to discuss with you:

I think — initially — we can do some typedef-fing for every symbol around UICollectionView and then run this logic at runtime:

It appears that PSTCreateUICollectionViewClasses() does roughly the same thing. I’ll greatly appreciate if you can try this path — run RAPageViewController unmodified, compile with iOS 6.0 SDK with distribution target of iOS 5.0+ to steal all the constants at compile time, and invoke PSTCreateUICollectionViewClasses() at run time.

Let me know how it goes.

bitwolaiye commented 11 years ago

You are right. Thank you.I will try later

evadne commented 11 years ago

Ideally we do not have to change anything in RAPageViewController, but it seems that UIKit compatibility in PSTCollectionView is done by forcing use of special classes from the calling site.

I think it’s because otherwise classes will just not be linked correctly if they are not available. (note: fuzzy memory, I can be dead wrong.)

We might have to implement our own mechanism like that and special-code the sniffing in. Can’t have developers who use RAPageViewController to just fork and patch.

On Apr 14, 2013, at 10:38 PM, bitwolaiye notifications@github.com wrote:

You are right. Thank you.I will try later


Reply to this email directly or view it on GitHub: https://github.com/evadne/RAPageViewController/issues/5#issuecomment-16351108