• Stars
    star
    157
  • Rank 238,358 (Top 5 %)
  • Language
    Objective-C
  • License
    Other
  • Created about 11 years ago
  • Updated about 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The dock-like control for iOS

MCSFishEyeView

The fisheye from our Bubble Browser for iPad.

How To Use

Checkout demo project for some real life action!

Instantiating

Setup a dataSource, an optional delegate, add subview and you're done

MCSFishEyeView *fisheye = [[MCSFishEyeView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 50.0f, 600.0f)];  
fisheye.dataSource = self;
fisheye.delegate = self;
[self.view addSubview:fisheye];

Items

MCSFishEyeView has the notion of items, which are more or less similar to table view cells. Each item should be a subclass of MCSFishEyeViewItem, as it already provides convinent methods for setting highlighted and selected state. You register a class to MCSFishEyeView by this one-liner:

[fisheye registerItemClass:[MCSExampleFishEyeItem class]];

Inside your custom MCSFishEyeViewItem subclass you are free to do whatever you want in both

- (void)setSelected:(BOOL)selected animated:(BOOL)animated

and

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated

methods, just make sure you call super (don't worry, compiler will warn you if you forget to do so).

States

MCSFishEyeView has three different states:

  • MCSFishEyeStateCollapsed - in this state all the items are collapsed, no item is highlighted or selected

  • MCSFishEyeStateExpandedActive - items are moving around according to touch location, at most one element is highlighted, no elements are selected

  • MCSFishEyeStateExpandedPassive - in this state a single item is standing out in selected state, all the other items are collapsed

Detailed explanation

For more detailed description of how MCSFishEye works checkout this post on our blog!

Requirements

  • iOS 5.0
  • ARC
  • QuartzCore framework in your project

Contact

Macoscope

License

Copyright 2013 Macoscope, sp z o.o.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

More Repositories

1

CodePilot

Code Pilot is an Xcode plugin which lets you woosh through your code and save a lot (and we mean a *lot*) of your time.
Objective-C
1,327
star
2

SwiftyStateMachine

Swift ยตframework for creating state machines
309
star
3

GrandCentralBoard

Hang a TV in your open space or team room to show everyone what's up and get them up to speed.
Swift
203
star
4

RoomBookerMVP

Java
102
star
5

MCSLLDBToolkit

Set of handy LLDB commands that will dramatically improve your debugging workflow
Python
87
star
6

WWDC16

Swift
73
star
7

NotificationController

A safer and easier way to use NSNotificationCenter with blocks.
Objective-C
64
star
8

MCSCollectionUtility

Objective-C
60
star
9

objc-style-guide

Our code style guidelines
48
star
10

KetchupLunch

Kotlin
30
star
11

QCConsole

A logging console for your Quartz Composer compositions
Objective-C
20
star
12

QCAntennaConnections

Quartz Composer Goes Wireless
Objective-C
17
star
13

ContinuousIntegrationExample

Example project showing how to set up Travis CI and HockeyApp integration using fastlane
Swift
16
star
14

QuartzComposerCompositions

Macoscope's assortment of Quartz Composer compositions related with blog posts
14
star
15

DemoColorPicker

Custom Color Picker extending OS X Color Panel.
Swift
6
star
16

BlogSpellServer

Spell server implementation example for blog post.
Objective-C
3
star
17

JavaUnitTesting

Java Unit Testing with Spock and RxJava
Groovy
2
star
18

MagazineViewController

Paginated control for magazine-like content
Objective-C
2
star
19

GateKeeper

GateKeeper RaspberryPi service and OS X application.
Objective-C
2
star