Time of Update: 2014-10-28
日期選取器(IOS開發)- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.}- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be
Time of Update: 2014-10-28
PendulumViewDemo,pendulum原始碼地址:http://url.cn/Sj5SSX:工程圖:注意,此代碼中要加入第三方庫PendulumView。RootViewController.m//點擊任何處彈出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UIColor *ballColor = [UIColor colorWithRed:0.47 green:0.60 blue:
Time of Update: 2014-10-27
URBAlerViewDemo,listviewdemo :工程圖:注意:此檔案要加入第三主庫URBAlertView.RootViewController.m//點擊任何處,出現提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ URBAlertView *alertView = [URBAlertView dialogWithTitle:@"Test Dialog" subtitle:
Time of Update: 2014-10-24
iOS_動態插入刪除行最終:分MVC三層設計;自訂的Cell有兩種;一種是MainCell,由ModelArr提供資料來源;另一種是插入的cell,由代碼建立,並且由另外一個數組供狀態資料vc3Ryb25nPjxicj4KCgrK/b7d1LSyv7fWOjxicj4KCgo8aW1nIHNyYz0="http://www.2cto.com/uploadfile/Collfiles/20141020/20141020084601125.png" alt="\">////
Time of Update: 2014-10-24
iOS擷取當前城市1.倒入標頭檔#import 2.實現定位協議CLLocationManagerDelegate3.定義定位屬性@property(nonatomic,retain)CLLocationManager *locationManager;4.開始定位- (void)locate{ //判斷定位操作是否被允許 if([CLLocationManagerlocationServicesEnabled]) { self.locationManager =
Time of Update: 2014-10-23
ios開發-單例抽取宏,ios開發抽取宏在日常開發中,我們經常會用到宏,宏本質上就是在編譯的時候,替換代碼樣本1://##可以用於拼接宏中的變數名#define demo(xxx) int##xxx"main(){ int intA = 10; int intB = 20; NSLog(@"======%d",demo(A) + demo(B));} 開發中怎使用單例
Time of Update: 2014-10-21
清風註解-Swift程式設計語言:Point6~10,-swiftpoint6目錄索引清風註解-Swift程式設計語言 Point 6.輸出常量和變數代碼案例:// 輸出的內容會在最後換行println("hello, world")// 輸出的內容最後不會換行print("My name is Dash Geng")註解:可以用 println 或 print 函數來輸出當前常量或變數的值。println 和 print 是用來輸出的全域函數(內建函數)。println
Time of Update: 2014-10-21
為iOS7重新設計你的App,iOS7重新設計App在 WWDC 上看到 iOS 7 系統的發布後,我們重新審視了自己的應用 Grocery List,並且意識到:iOS 7 對於開發人員來說是一個全新的開始,就像七年前 iPhone 首次發布一樣。現在僅僅簡單地改變設計是不夠的,我們不得不重新思考並重構整個 app,從而讓它適合 iOS 7 全新的環境。我們也的確是這麼做的。 根據使用者的反饋和我們自己的使用方式,我們意識到,雖然不能改變 app
Time of Update: 2014-10-20
翻頁效果的實現(仿滿座團購首頁),翻頁團購 整體實現效果: 點擊root,也就是紅色的任何處,頁面會像翻書一樣翻轉。翻轉到first,也就是藍色的介面。當點擊頂部root頁面部分的時候,頁面會重新翻到root,也就是紅色的介面。 開始時候的:點擊root任何處的:點擊first頂部的:代碼:-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
Time of Update: 2014-10-18
iOS使用自訂字型1.添加對應的字型(.ttf或.odf)到工程的resurce,例如my.ttf。2.在info.plist中添加一項 Fonts provided by application (item0對應的value為my.ttf,添加多個字型依次添加就可以了)。3.使用時aLabel.font=[UIFontfontWithName:@"XXX" size:30]; 注意XXX不一定是my,這裡是RETURN TO
Time of Update: 2014-10-18
iOS判斷是否存在網路Every iPhone developer that has integrated a network connection based application has had to follow the Apple HID (Human Interface Design) rules. This means, that in order to get the Apple reviewers to sign-off on your application, you
Time of Update: 2014-10-18
ios 設定狀態列背景顏色第一種方法: [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque; self.navigationController.navigationBar.tintColor = [UIColor blackColor]; if (is_ios_7_Later) { self.view.window.frame = CGRectMake(0, 2
Time of Update: 2014-10-18
iOS 自訂tabBarController//// TabBar.m// TabBarDemo//// Created by LeeYunHeNB on 14-10-10.// Copyright (c) 2014年 XinMaHuTong. All rights reserved.//#import "TabBar.h"#import "TabBarBase.h"@interface TabBar (){ UIButton *btn;}@property (nonatomic,
Time of Update: 2014-10-18
ios inHouse 發布應用一、明確幾個概念1、企業版IDP: 即iOS Development Enterprise Program。注意是$299/Year那種,並不是$99/Year的那種 2、In House:是指企業內發布,僅限企業內部人員使用。二、In-House 特點:1、不能發布到AppleStore進行銷售 2、不需要Apple評審 3、可以使用任何一支的私人API
Time of Update: 2014-10-18
ios 視頻播放代碼Demo方法一:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //利用內建MPMoviePlayerController來實現視頻播放,首先要在 項目中匯入MediaPlayer.Framework架構套件. //在試圖控制器中匯入#import
Time of Update: 2014-10-18
IOS開發各種加解密,編解碼1.AES加解密,給NSData添加類別 NSData+AES添加標頭檔#import - (NSData *)AES256EncryptWithKey:(NSString *)key {//加密char keyPtr[kCCKeySizeAES256+1];bzero(keyPtr, sizeof(keyPtr));[key getCString:keyPtr maxLength:sizeof(keyPtr)
Time of Update: 2014-10-17
比特幣錢包應用breadwallet源碼,位元breadwalletbreadwallet是一款安全、可靠和便捷的比特幣錢包,可使使用者免於惡意軟體和其他應用中常見的安全問題的騷擾,充分利用了iOS提供的安全功能,包括AES硬體加密、app沙箱和資料保護、程式碼簽署以及keychain服務。breadwallet使用了簡化的支付驗證或者SPV模式來直接從比特幣網路檢索資料。項目詳細說明:http://ios.662p.com/thread-2150-1-1.html
Time of Update: 2014-10-17
帶搜尋,索引的tableView,搜尋索引tableview : 上代碼: .h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,UISearchDisplayDelegate,UISearchBarDelegate>{
Time of Update: 2014-10-17
點擊儲存格,彈出另外一個tableView選擇頁面,儲存格tableview 儲存格頁面; 點擊儲存格後的: 選擇儲存格後的:.h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>{ UIView * _huiView;
Time of Update: 2014-10-17
模仿汽車大全的點擊一個按鈕,會彈出多個按鈕,同時,點擊背景圖,多個按鈕動畫返回的效果,大全背景圖 剛開始啟動並執行時候的:點擊ican表徵圖後的: RootViewController.h #import <UIKit/UIKit.h>@interface RootViewController : UIViewController{ UIImageView *iCanImageView; UIImageView