instructure / CKRefreshControl

A pull-to-refresh view for iOS 5, 100% API-compatible with UIRefreshControl in iOS 6
MIT License
292 stars 57 forks source link

Do I need to add libCKRefreshControl.a manually? #23

Closed CraigMetcalfe closed 11 years ago

CraigMetcalfe commented 11 years ago

Hello,

Thank you very much for this addition, it is the perfect solution! I don't know if this is the best way to contact you, but I've just joined so it seemed to be the easiest way :)

I am having a small problem, I looked through the demo files and saw that libCKRefreshControl.a was added within the demo project but I could not find this file in the repository or the downloaded files?

Is this file created once the -ObjC linker flag is added? I was receiving EXC_BAD_ACCESS - then I realised I had not included the flag, so until then I will keep trying.

Regards, Craig

johnhaitas commented 11 years ago

libCKRefreshControl is a target in CKRefreshControl.xcodeproj which is a sub-project of RefreshControlDemo.xcodeproj

It is a dependency of the RefreshControlDemo target - thus will be build as needed when building RefreshControlDemo.

CraigMetcalfe commented 11 years ago

That makes sense.

It turns out the method I am calling from within doRefresh: is causing the problem! Need to work on calling a method when refreshing

Again, thank you for sharing the great work :)

EDIT: Required a delay in calling the method, CKRefreshControl is working perfectly on iOS 5&6