Add a search field and controller to the questions view.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' into feature/browse-questions-by-tag

* master:
  Add CDKitt macros header with some nice things.
Add the search bar again as it ended up in the wrong place.

- It got added as a row and not a header view.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add code to show search results.

- Remove a bunch of template code.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Rename two pragma marks.

- It's good to use the actual protocol name as it lets you click it to
get to the definition or documentation.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Refactor out the question table view cells into their own XIBs.

- We do this such that the OPFQuestionViewController can be instantiated
from code.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Change so that the questions controller is the root controller.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add code to show question details on cell selection.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Change so we make sure we don’t try to use an unknown table view.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Set a id for the cell to keep search at top.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Set title of the question view controller.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add method on NSString to get a trimmed string.

- The trimming removes any whitespace in the beginning and end of the
receiver.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add first step towards showing a filtered list of questions.

- That is, the first step towards being able to display questions
related to a tag.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' into feature/browse-questions-by-tag

* master: (65 commits)
  Disable code signing for the unit test target.
  Add relations in storyboard.
  Fix height for cells in table controller.
  Fix naming error in groups.
  Add controller h/m-files, outlets and load handling.
  Add searchbar deletegate to view controller.
  Add profile search to story board.
  Fix isues with xprof file having dead targets.
  Add methods on delegate for searchbar.
  Add nothing to the xib cuz xibs always change.
  Add specs for comment relations
  Add relation accessors to comments
  Remove unused property
  Add method stub
  Remove the ugly duplicate spec
  Remove where method from protocol
  Add Answer spec stub
  Add spec for fetching answers
  Correct query column
  Added some more fields to the userProfileView and changed the layout of some table-rows
  ...

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>

Conflicts:
	Code Stream.xcodeproj/project.pbxproj
	Code Stream/en.lproj/MainStoryboard.storyboard
Change questions view filtering to make sure search string != nil.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' into feature/browse-questions-by-tag

* master:
  Fix question view controllers being pushed twice.
Merge branch 'master' into feature/browse-questions-by-tag

* master:
  Change so Travis does not send notifications by email.
Add the search stuff again as it got lost in a merge.

- Lost in Merge, sound like a follow up to Lost in Translation.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add outlet to questions search bar.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Refactor filtering of questions.

- It is now possible filter questions by their tags.
- It is also possible to search the title and body of a tag, although
this implementation currently deals with the entire data set and would
thus not be usable when the entire data model is hooked up. We currently
only deal with five semi-static rows.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>