GithubHelp home page GithubHelp logo

aurosetteview's Introduction

AURosetteView

AURosetteView is a easy-to-use, clean and lightweight share button primary for social platforms. It looks like rosette with nice animation.

Screenshot1

Build the included Sample app to see it in action.

Requirements

Requires iPhone OS SDK 3.0 or greater.

Using AURosetteView in Your Project

To use AURosetteView copy the source code into your project then add a data source class for your photos.  Here is how:

  1. Add sub module in your project: git submodule add http://github.com/appunite/AURosetteView.git Frameworks/AURosetteView
  2. open Frameworks/AURosetteView
  3. Copy AURosetteView.xcodeproj to your project Frameworks group.
  4. Go to your project -> select correct target -> build phases
  5. Add AURosetteViewLib to your Target Dependences
  6. Add libAURosetteViewLib.a, QuartzCore, CoreImage and CoreGraphics to your Link Binary With Libraries
  7. Include <AURosetteView/AURosetteItem.h>
  8. Include <AURosetteView/AURosetteView.h>
  9. Create objects of AURosetteItem
  10. Create a view of AURosetteView with AURosetteItems using initWithItems
  11. Add AURosetteView on your view
  12. Implement selectors

Status

The project is a work in progress.

TO DO

  • Button highlight
  • Setting properties of buttons like colors and so on

License

The MIT License (MIT) Copyright (c) 2013

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

aurosetteview's People

Contributors

emilwojtaszek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aurosetteview's Issues

How to rotate the expanded view?

This is a great component. But I have a small question. How can I rotate the expanded view? Currently to expand to the right of button. Is it possible to let it expand to the left or any angle of the button?

Thanks

Invisible controls

I downloaded the project and was able to build it in Xcode 6.3.2 on Mac Yosemite 10.10.3 running on various simulators and my iPhone 5 with iOS 8.3. The screen was solid white and nothing happened when I tapped anywhere.

On the Simulator, I saw logs indicating I was tapping on something (Mail,Facebook,Twitter) but the screen was still blank. I was not able to get any logs when using my device.

How to add AURosetteView

Can you help me

I am newbie Objective-C and Xcode.

I add AURosetteView.h and .m files AURosetteItem.h and .m files.

I add my viewcontroller viewDidLoad

UIImage* twitterImage = [UIImage imageNamed:@"/Bundle.bundle/Resources/rosetta_twitter.png"];
UIImage* facebookImage = [UIImage imageNamed:@"/Bundle.bundle/Resources/rosetta_facebook.png"];
UIImage* mailImage = [UIImage imageNamed:@"/Bundle.bundle/Resources/rosetta_mail.png"];

// create rosette items
AURosetteItem* twitterItem = [[AURosetteItem alloc] initWithNormalImage:twitterImage
                                                       highlightedImage:nil
                                                                 target:self
                                                                 action:@selector(twitterAction:)];

AURosetteItem* facebookItem = [[AURosetteItem alloc] initWithNormalImage:facebookImage
                                                        highlightedImage:nil
                                                                  target:self
                                                                  action:@selector(facebookAction:)];

AURosetteItem* mailItem = [[AURosetteItem alloc] initWithNormalImage:mailImage
                                                    highlightedImage:nil
                                                              target:self
                                                              action:@selector(mailAction:)];

// create rosette view
AURosetteView* rosette = [[AURosetteView alloc] initWithItems: [NSArray arrayWithObjects: twitterItem, facebookItem, mailItem, nil]];
[rosette setCenter:CGPointMake(100.0f, 100.0f)];
[self.view addSubview:rosette];

The plus sign shown on view but when I pressed the plus button I get this error.
*** -[__NSArrayI count]: message sent to deallocated instance

Please help me...

Please add licensing information

hi. i'm hoping to add this control to a project, but there isn't any licensing information! could you add something to the README.md file, e.g.,

Copyright (c) 2012 Emil Wojtaszek

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Touch Recogniser Left Behind

Im not exactly sure whats going on but iv'e found that when i first launch the app and tap where a leaf would be if AURosetteView was open it fires the action! So what i mean is it fires an action even when the AURosetteItem isn't actually on screen. Is the touch recogniser being left behind?

Anyway, great control! Keep it up!

Nice control! (Some things)

  • I must set [items retain] cause i had an EXC_BAD_ACCESS at init.
  • I call 'fold' method an set 'on=NO' when i click on an item.
  • i noticed that when i click a lot on the center button, the item's image stay visible sometimes.

New Feature Request

Hi @emilwojtaszek , awesome component, loved it.. can you add selection color like blue or some thing? It would be great.
Thanks for sharing! keep it up :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.