Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to incorporate AQGridView into ones project?

The documentation states that "This project compiles to a static library which you can include, or you can just reference the source files directly."

Here's what I've done. I've downloaded it from GitHub and unzipped it. Here are the classes I can see.

enter image description here

Now which file among these is the 'static library' that I should import into my project?

Additionally, if I just want to reference the source files, should I just copy the .h/.m files in Classes into my project? I tried doing that but throws the following error when I try to build it:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CALayer", referenced from:
objc-class-ref in AQGridViewCell.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

Can any one show me how to set this up?

like image 794
NSExplorer Avatar asked Nov 27 '22 09:11

NSExplorer


2 Answers

You may try to add the QuartzCore framework to your target.

like image 51
FoJjen Avatar answered Dec 18 '22 04:12

FoJjen


All you need to do is add the class files to your project. Use the AQGridView.xcodeproj just as a reference to see how it uses the classes. It is actually a very friendly to use library of classes.

Once you added the class files to your project, when you create a new viewController, just follow the setup. Make sure you use the delegates for it and if you want to modify the gridViewCells just extend the AQGridViewCell class.

Also, as @FoJjen mentions, make sure you add the QuartzCore.framework to your project

like image 20
A Salcedo Avatar answered Dec 18 '22 05:12

A Salcedo