• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Objective-C
  • Created over 10 years ago
  • Updated over 10 years ago

Reviews

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

Repository Details

Idea from http://nonomori.farbox.com/post/ios-7-jiao-hu-shi-guo-du, and convert this transition effect more easier to use.You can use this effect on ios6 !!

DaiNavigationTransition

Idea from http://nonomori.farbox.com/post/ios-7-jiao-hu-shi-guo-du, and convert this transition effect more easier to use.

image image

DaidoujiChen

[email protected]

總覽

這個想法起源于上面的那個網站, 但是如大家所見的, 網站中實現的方法需要額外的添加許多東西, 實作起來並不是這麼的直覺, 因此將這個想法轉化為較為簡單的實現方式, 總之也是懶惰下的成果.

支援

  • ARC only
  • ios6 / ios7 (io6 要繞好遠...才可以做到跟 7 一樣的效果)

簡易使用

ok, 非常的簡單, 首先

#import "UINavigationController+Transition.h"

將這個檔案 import 到你想使用這個效果的地方, 然後, push view 時改變為 call

[self.navigationController pushViewController:[SecondViewController new]
                                     fromView:^UIView *(UIViewController *viewcontroller) {
                                         MainViewController *main = (MainViewController*) viewcontroller;
                                         DefaultTableViewCell *cell = (DefaultTableViewCell*) [main.demoTableView cellForRowAtIndexPath:[main.demoTableView indexPathForSelectedRow]];
                                         return cell.redView;
                                     }
                                       toView:^UIView *(UIViewController *viewcontroller) {
                                           SecondViewController *second = (SecondViewController*) viewcontroller;
                                           return second.redView;
                                       }];

其中, fromView 為原先從哪個 view 開始, toView 為切換至下一個 controller 之後會變成哪個 view, 就這樣.

More Repositories

1

Dai-Hentai

一個普通的看漫畫 App
Objective-C
1,227
star
2

DaiMethodTracing

This is a tool for understanding your methods. You can monitor the input / output value, method relationships, method process time.
Objective-C
188
star
3

DaiExpandCollectionView

Expand the current selected item. Focus the user's eyes.
Objective-C
163
star
4

DaiDodgeKeyboard

Let your textfield / textview automatic dodge your keyboard.
Objective-C
85
star
5

DaiMethodHelper

A Tool for scan duplicate methods, verify method implementation, or force invoke the method!
Objective-C
68
star
6

DaiLive2DPlayground

Get a girl friend in programming
C++
66
star
7

DaiInboxHUD

這是一個模仿 google inbox 轉圈效果的 HUD
Objective-C
38
star
8

DaiDebugLog

開發者與工作夥伴的溝通利器!
Objective-C
19
star
9

DaiYoutubeParser

Parse the youtube video url path, do any custom things you want.
Objective-C
12
star
10

DispatchTimer

It is base on Dispatch Timer Source. Make it like NSTimer to use.
Objective-C
5
star
11

RuntimeSample_20150702

RuntimeSample_20150702
Objective-C
5
star
12

waifu2x-iOS

waifu2x re-implementation in C++ using OpenCV for iOS
C++
5
star
13

DaiYoutubeParserSwift

Parse the youtube video url path, do any custom things you want.
Swift
5
star
14

DaiPortalV2

Portal is a idea for transfer objects from A place to B place.
C
3
star
15

DaiSurvivor

Help your apps survive in the background!! 幫助你的 app 在背景中生存!!
Objective-C
3
star
16

DaiVolume

I DON'T want to use MPVolumeView.
Objective-C
3
star
17

RuntimeSample_20150806

RuntimeSample_20150806
C++
3
star
18

DaiFileManagerSwift

An easier way to control files. 簡單容易存取檔案
Swift
3
star
19

MoeMoeChu

Mac 端使用版本
Swift
3
star
20

htags

service e/ex tag 中文對照表, 來源自 https://github.com/Mapaler/EhTagTranslator
Go
3
star
21

DaiStorage

DaiStorage
Objective-C
2
star
22

DaiQuickPicker

DaiQuickPicker
Objective-C
2
star
23

LightWeightPlist

It is a lightweight tool allows you to easily access plist files in document / resource folder
Objective-C
2
star
24

RuntimeSample_20151015

RuntimeSample_20151015
Objective-C
2
star
25

AmiAmiReborn

上不了架的可憐 app, 用來看 amiami 的小人們
Objective-C
2
star
26

ImageFilter

圖片分類
Swift
1
star
27

InstallCloud9OnEC2

Cloud9 on EC2 安裝筆記
1
star
28

DaiBenchmark

How Much Balls Can You Display?
Swift
1
star
29

Dai36Converter

私用 36 進位計算機
Swift
1
star
30

DaiFrame

DaiFrame
Objective-C
1
star
31

DmhyRSSEnhance

Add Some Feature on Dmhy RSS
JavaScript
1
star
32

Shinsi

Shinsi is a ex-hentai viewer in Swift 2.0
Swift
1
star
33

DaiImageReplacer

DaiImageReplacer
Swift
1
star
34

DaiMultipleLevelsPicker

DaiMultipleLevelsPicker
Objective-C
1
star
35

DaiSlam

Play 3D Touch For Fun
Swift
1
star
36

PerfectChatroom

Build a easy chatroom use swift Perfect framework
Swift
1
star
37

RealmPlayground

It is my Realm Playground, just for test Realm.https://github.com/realm/realm-cocoa
Objective-C
1
star