Coder Social home page Coder Social logo

gkslidingtext's Introduction

GKSlidingText

=================

Ever wanted the use the same Sliding Text like Apple uses on the lock screen or in the Music.app (or like we do it in iRadio) to display the song/artist? Here is GKSlidingText which reproduces this endless sliding effect.

How to use it

=================

  • just drag and drop the GKSlidingText.h and GKSlidingText.m into your project.
  • add QuartzCore.framework to your project (if you haven't added it yet)
  • look at the sample code below.
  • this project contains a sample project as well, just have a look at the implementation of ViewController.m
  • have fun and follow @gekitz.

Sample Code

===============

GKSlidingText *slidingText = [[GKSlidingText alloc] initWithFrame:CGRectMake(20, 160, 280, 25)];
	
slidingText.text = @"This is a sliding text wohooo slide slide...";
[self.view addSubview:slidingText];

Under the following link you can see a video of what this source code actually produces.

License

=========== Under MIT. See license file for details.

gkslidingtext's People

Contributors

gekitz 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gkslidingtext's Issues

duplication of text

Sometimes if i exit app on the view with the GKSlidingText and then go back, the text will scroll but theres another layer under if of text not scrolling, so it duplicated itself on top?

Not centered text

When there is barely any text, its also not centered. In landscape the text says "Ho Hey" and the frame is (0, 5, (SCREEN_WIDTH-60)-60, 22), but the text is near the left side. Text should always be centered to look better, or allow a option for alignment.
IMG_0436

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.