• This repository has been archived on 16/Apr/2021
  • Stars
    star
    661
  • Rank 68,192 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 9 years ago

Reviews

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

Repository Details

Parallax implementation inspired by Yahoo Weather and News Digest :)

MHYahooParallaxView

Parallax implementation control library inspired by Yahoo Weather and News Digest :)

Screenshots

Yahoo Weather Parallax Example

Preview Preview

News Digest Parallax Example (Tsekot.net app - prototype)

Preview

Designed and developed by michaelhenry

How to use

Setup

MHYahooParallaxView * parallaxView = [[MHYahooParallaxView alloc]initWithFrame:CGRectMake(0.0f,0.0f, self.view.frame.size.width, self.view.frame.size.height)];
[parallaxView registerClass:[MHTsekotCell class] forCellWithReuseIdentifier:[MHTsekotCell reuseIdentifier]];
parallaxView.delegate = self;
parallaxView.datasource = self;
[self.view addSubview:parallaxView];

Datasource (MHYahooParallaxViewDatasource)

@required

- (NSInteger) numberOfRowsInParallaxView: (MHYahooParallaxView *)parallaxView;
- (UICollectionViewCell*) parallaxView:(MHYahooParallaxView *)parallaxView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

Delegate (MHYahooParallaxViewDelegate)

@optional
- (void) parallaxViewDidScrollHorizontally:(MHYahooParallaxView *)parallaxView leftIndex:(NSInteger) leftIndex leftImageLeftMargin:(CGFloat) leftImageLeftMargin leftImageWidth:(CGFloat)leftImageWidth rightIndex:(NSInteger)rightIndex rightImageLeftMargin:(CGFloat)rightImageLeftMargin rightImageWidth:(CGFloat) rightImageWidth;

- (void) parallaxViewDidScrollVertically:(MHYahooParallaxView *)parallaxView topIndex:(NSInteger) topIndex topImageTopMargin:(CGFloat) topImageTopMargin topImageHeight:(CGFloat)topImageHeight bottomIndex:(NSInteger)bottomIndex bottomImageTopMargin:(CGFloat)bottomImageTopMargin bottomImageHeight:(CGFloat) bottomImageHeight;

Example

The project has 2 targets that use as demo.

  • Demo for News Digest (Tsekot.net Prototype app)
  • Demo for Yahoo Weather

Please let me know if you have any questions.

Cheers,
Michael Henry Pantaleon

Twitter: @michaelhenry119

Linked in: ken119

http://www.iamkel.net

Licensing

Copyright (c) 2014 Michael Henry Pantaleon (http://www.iamkel.net). All rights reserved.

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.

More Repositories

1

ImageViewer.swift

An easy to use Image Viewer that is inspired by Facebook
Swift
1,449
star
2

FlipBoardNavigationController

This is a new navigation controller inspired by Flipboard.
Objective-C
846
star
3

MHNatGeoViewControllerTransition

A new 3D Effect ViewController transition inspired by NatGeo (City Guides by National Geographic)
Objective-C
642
star
4

NewsMagazineApp

Simple way to inform you. An OpenSource news magazine app.
Objective-C
342
star
5

KeyboardAvoider

The missing interactive keyboard in SwiftUI for iOS
Swift
128
star
6

MHWebViewController

An Instagram inspired Web View Controller.
Swift
74
star
7

RxRetroSwift

A Reactive way inspired by the simplicity of Retrofit when creating REST API Calls.
Swift
68
star
8

deploy-to-cocoapods-github-action

Github action for deploying to Cocoapods.org
JavaScript
38
star
9

Localizr

Localizr is a Tool that handles and automates the generation of localization files for IOS and Android so there will be only one source of truth for all of your localization strings.
Python
35
star
10

MHProgressView

A simple progressview indicator that looks like the progressview in Instagram.
Objective-C
27
star
11

MHPinterestLayout

customized dynamic cell - Pinterest layout with custom header
Swift
24
star
12

Localizr.swift

Simplified and automated Localization process library in IOS. Please check https://github.com/michaelhenry/Localizr for more info.
Swift
19
star
13

AttributedString.swift

Swifty NSAttributed String.
Swift
18
star
14

Rates

A currency rate converter App.
Swift
14
star
15

Prettier.swift

Prettier.io wrapper for swift. An opinionated code formatter.
JavaScript
10
star
16

swifty-code-coverage

A github action for generating code coverage report for your ios/macos/spm project.
Shell
7
star
17

AutoBot

DSL for creating UITestCases for iOS Development.
Swift
4
star
18

XConfigs

πŸ› Configs, a quick, simple and stylish solution for your remote and dev configurations.
Swift
4
star
19

fastlane-match-certificates-boilerplate

A boilerplate git repository for your .mobileprovision and .cert files when using fastlane match
Shell
4
star
20

create-report

A Github action for creating generic run report (using Markdown, HTML or JUnit).
Swift
3
star
21

envject

A command-line tool for injecting environment variables or secrets to any file that has to be compiled. (like for example in iOS, with string obfuscation support).
Go
3
star
22

go-gin-lambda

A very easy way to deploy your go-gin application to aws lambda.
Go
3
star
23

SimpleXMLParser

Swift
2
star
24

SwiftUIKit

A collection of UIKIt control for SwiftUI.
Swift
1
star
25

DjangoDocker

Docker recipe for Django on GUNICORN and NGINX
Shell
1
star
26

SwiftAutoCoder

A simple automated nscoding implementation in swift
Swift
1
star
27

MHEmailController

Override the Send Button of the MFMailComposeViewController then Add Captcha Verification Before sending it
Objective-C
1
star
28

omise

A simple and opinionated key value store using single table design pattern in go
Go
1
star
29

SwiftCommonUtils

Just utils.
Swift
1
star
30

michaelhenry

1
star
31

.files

1
star
32

App

Swift
1
star
33

AutoBotServer

the server that accepts and generates actions for UI test cases.
Python
1
star
34

IOSMacroFunctionHelperList

A collection of some helpful macro functions that can be reuse for IOS development.
Objective-C
1
star
35

IOS_GHActions

My Personal GH Actions for IOS Development
1
star
36

MHSocialNetworkingSharerHelper

This is just a helper for integrating custom social sharing capabilities (not just using the default IOS sharing sheet form).
Objective-C
1
star