IOS 7 content extends to multiple UITableViewCells

Follow-up question to my other iOS tableView question with time left

I am trying to implement a calendar like this using this project found on GitHub

enter image description here

I tried to create a ViewController with a CollectionView as well as a CollectionViewController, and then import the header and implementation file of MSCollectionViewCalendarLayout and set them as a custom layout for CollectionView.

Trying to build from a workspace file gives me this error:

The command / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / clang failed with exit code 1

Trying to build from the Xcode project file gives me this error along with the above:

File RestKit.h not found

What is the right way to start using this project using a simple structure for each element?

I cannot find any tutorial or similar with instructions on how to get started.

My question is: Can someone help me explain how I can start with this without using the SeatGeek API?

Many thanks for the help!

+5
source share
1 answer

It seems that there are several problems: what happens to the first, and then why it happens under your navigation material.

I will start with the first problem.

His example uses Cocoapods, and it seems like he tried to attach the completed xcworkspace to simplify it, but that didn't help me either.

I would suggest installing Cocoapods and starting the pod installation yourself. All instructions on how to do this should be in this link.

After that, the thing will still not compile, because some block is trying to set the enumeration to something that is not a compile-time constant. Just go ahead and change the enumeration values ​​to constants (should be 1000, 750, 250, 50 respectively for missing values) to run the example. If you use codes in production code, you will NEVER want to do this, but since this is an example of using obsolete modules, just find the path of least resistance here.

As for the content under the navigation bar, you probably have to guess with the setting of the CollectionView contentInsets . You can also just bind CollectionView to this header bit that you have, with autorun or frames.

0
source

All Articles