自定義TabBar(作者:zifeng1300)
自定義TabBar,可以選中和非選中圖片,還可以加badgeValue
測試環境:Xcode 6.2,iOS 6.0 以上

帶記憶存儲功能的計算器(作者:shift_sheep)
一個帶記憶存儲功能的基礎計算器,可以查看最近的計算歷史紀錄。
小弟學生黨一枚,出於興趣自學iOS一段時間了,所以做了這個小app練練手,也問過大家不少很新手的問題,很感謝。希望大家多多關照!
測試環境:Xcode 6.2,iOS 6.0 以上

解析XML的地址選擇(作者:dycdante)
通過解析xml文件得到地址數據然後用pickerview 顯示出來
測試環境:Xcode 6.2,iOS 6.0 以上

UIScrollView和自定義PageControl的結合使用(作者:nostyle)
1,UIScrollView頁碼控制,page點靈活的自定義,page點動畫過度,page風格可隨你設置的UI圖片而變化。
2,歡迎fork!
測試環境:Xcode 6.2,iOS 6.0 以上

HySubmitTransitionObjective-C轉場動畫OC版(作者:wwdc14)
1.原作者:@entotsu
1.1 原作者連接:https://github.com/entotsu/TKSubmitTransition [swift版]
1.2 objective-C版鏈接:https://github.com/wwdc14/HySubmitTransitionObjective-C [objective-C版]
2.使用:
import "HyTransitions.h" import "LoglnButton.h"
2.1 創建button
LoglnButton *log = [[LoglnButton alloc] initWithFrame:CGRectMake(20, CGRectGetHeight(self.view.bounds) - (40 80), [UIScreen mainScreen].bounds.size.width - 40, 40)]; [log setBackgroundColor:[UIColor colorWithRed:0 green:119/255.0f blue:204.0f/255.0f alpha:1]]; [self.view addSubview:log]; [log setTitle:@"登錄" forState:UIControlStateNormal]; [log addTarget:self action:@selector(PresentViewController:) forControlEvents:UIControlEventTouchUpInside];
2.2 實現方法
//網絡正常 或者是密碼賬號正確跳轉動畫
[button ExitAnimationCompletion:^{
if (weak.Switch.on) {
[weak didPresentControllerButtonTouch];
}
}];
//網絡錯誤 或者是密碼不正確還原動畫
[button ErrorRevertAnimationCompletion:^{
if (weak.Switch.on) {
[weak didPresentControllerButtonTouch];
}
}];2.3 創建控制器
UIViewController *controller = [SecondViewController new]; UINavigationController *nai = [[UINavigationController alloc] initWithRootViewController:controller]; nai.transitioningDelegate = self; [self presentViewController:nai animated:YES completion:nil];
2.4 實現代理
- (id)animationControllerForPresentedController:(UIViewController *)presented
presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
return [[HyTransitions alloc]initWithTransitionDuration:0.4f StartingAlpha:0.5f isBOOL:true];
}
- (id )animationControllerForDismissedController:(UIViewController *)dismissed{
return [[HyTransitions alloc]initWithTransitionDuration:0.4f StartingAlpha:0.8f isBOOL:false];
}測試環境:Xcode 6.2,iOS 6.0 以上
