原创 iOS6 導航條title字體和顏色-不使用自定義視圖

一般的我們都是通過自定義視圖來設置導航條的title顏色和字體的 UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)]; t

原创 UITabelView代理方法詳解

<a target=_blank href="http://download.csdn.net/detail/vaercly/7908395">點擊打開下載鏈接</a> // // RootViewController.m // Le

原创 iOS XML/JSON解析

<a target=_blank href="http://download.csdn.net/detail/vaercly/7908319">點擊打開下載鏈接iOS,XML/JSON解析</a> // FInterPreterVC.m

原创 iOS程序執行過程

//UIApplication main函數是應用程序的入口, 做了: //1 創建應用程序對象(UIApplication對象) //2 指定應用程序的代理(通過代理來監測應用程序的執行狀態)

原创 霓虹燈動態效果,限定文本框的輸如長度

// // CCLAppDelegate.m // TestNeonLamp // // Created by lanouhn on 14-8-19. // Copyright (c) 2014年 [email protected]

原创 iOS用戶引導頁的簡單實現

// // RootViewController.m // LessonUIPageControl // // Created by lanouhn on 14-8-29. // Copyright (c) 2014年 vaerc

原创 iPhone相冊,(UIScrollView,UIPageControl的綜合應用)捏合放大縮小, 左右滑動切換圖片

<pre name="code" class="objc">// // PhotoView.h // Homework_iPhonePhoto // // Created by lanouhn on 14-8-29. // Cop

原创 iOS歸檔與解歸檔,持久化存儲

點此下載iOS歸檔,持久化存儲,解歸檔詳細工程//數據持久化的本質:將數據讀取成文件保存在本地. 沙盒機制就是系統針對於每一個程序在本地生成的文件夾(名字隨機生成), 對於不同的應用程序, 不能訪問其他應用程序沙盒內的內容, 對於該應用程

原创 平移視圖效果

// // CLTranslationView.m // LessonUIEvent // // Created by lanouhn on 14-8-25. // Copyright (c) 2014年 vaercly@163.

原创 ios7 導航控制器切換影響UIScrollView佈局的問題

在 iOS 7 中,如果某個 UIViewController 的 self.view 第一個子視圖是 UIScollView, 同時當這個 UIViewController 被 push 或 initWithRootController

原创 網易新聞首頁的實現,可以添加,移除標籤,自動滾動圖片,無限左右切換圖片

// // RootViewController.h // Homework_163News // // Created by lanouhn on 14-8-30. // Copyright (c) 2014年 vaercly@

原创 iOS 撥打電話 撥打完以後會回到原來的應用

NSDictionary *dic = self.names[self.titles[indexPath.section]][indexPath.row]; NSString *phone = dic[@"phoneNum

原创 iOS 快速獲取沙盒下任意文件夾的路徑

NSLog(@"%@", NSHomeDirectory());//沙盒主目錄 NSLog(@"%@", NSTemporaryDirectory());//沙盒中tmp文件夾的路徑 NSLog(@"%@", [[