Time of Update: 2014-06-07
1、案例介紹:具備索引功能的分節表視圖,01圖012、team_dictionary.plist<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>
Time of Update: 2014-06-07
1)apple Swift編程入門文檔- http://gashero.iteye.com/blog/2075324一位大神寫的關於Swift的一些介紹和簡單的使用,裡面介紹了Swift和其他語言的區分和一些新的特性及使用方法。2)apple
Time of Update: 2014-06-07
KVO的用法註冊[object addObserver:observer forKeyPath:@"text" options:NSKeyValueObservingOptionNew context:nil];實現回調方法-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{
Time of Update: 2014-06-07
一般情況下,當我們學習一種新語言的時候,我們都會寫一個Hello World小程式,在swift中,我們可以通過一行內容來實現。println("Hello,world")
Time of Update: 2014-06-03
效果很不錯的畫筆App,提供幾十種不同的畫筆,包括毛筆畫筆。擁有繪畫App的一些準系統,包括顏色選擇、繪畫儲存,支援撤銷(undo)、重做(redo)以及橡皮擦功能等等,甚至還支援類似PhotoShop圖層(layer)的功能(如第二張)。說明:應用的App
Time of Update: 2014-06-03
#import "KUViewController.h"#import "KUProgress.h"@interfaceKUViewController ()<NSURLSessionTaskDelegate>//下載進度的類,繼承UIview@property (weak, nonatomic) IBOutlet KUProgress *progressView; @end @implementation KUViewController
Time of Update: 2014-06-03
目前有三種方案:1.UIScrollView + UITableView。實現方法,在UIScrollView中,加入UITableView即可設定UIScrollView的代理和方法- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ int currentPostion = scrollView.contentOffset.x; if (currentPostion - 0 > 50) { NSLog(
Time of Update: 2014-06-03
但是發現這個辦法對於OpenGL 無用。 擷取到的資料為空白。所以這裡介紹下OpenGL ES螢幕。 1.初始化。 CAEAGLLayer *eaglLayer = (CAEAGLLayer *) self.layer; eaglLayer.drawableProperties = @{ kEAGLDrawablePropertyRetainedBacking: [NSNumber numberWithBool:YES],
Time of Update: 2014-06-03
全書目錄:一、Welcome to Swift二、Language Guide三、Language Reference /*譯者的廢話:幾個小時前熬夜看了WWDC,各種激動,今年很有料啊!當看到Swift出來的時候,瞬間傻眼,又要學習新語言了。這篇文章來自蘋果官方的《The Swift Programming
Time of Update: 2014-05-31
YYcarsgroup.h檔案代碼: 複製代碼 1 // 2 // YYcarsgroup.h 3 // 07-汽車展示(進階) 4 // 5 // Created by apple on 14-5-28. 6 // Copyright (c) 2014年 itcase. All rights reserved. 7 // 8 9
Time of Update: 2014-06-03
IOS 和ANDROID作業系統都是目前流行的移動作業系統,被移動終端和智慧型裝置大量採用,兩者都採用了先進的軟體技術進行設計,為了方便應用開發兩者都採用了先進的設計模式。兩者在架構設計上都採用了什麼技術?都採用了什麼設計模式?兩者設計思路和應用開發模式有什麼異同呢?兩者都採用了架構模式。IOS 的架構稱為Cocoa Touch。
Time of Update: 2014-06-03
Swift is a multi-tenant, highly scalable and durable object storage system that was designed to store large amounts of unstructured data at low cost via a RESTful http API. “Highly scalable”, means that it can scale from a few nodes and
Time of Update: 2014-06-02
ios 的通知機制,包括通知發布,通知監聽,通知移除。1.通知發布要發布通知前,要先建立通知對象,一個通知對象包括 通知發行者:發布通知到通知中樞;通知中樞:接收通知發行者發布的通知,並轉寄給通知接收者。通知接受者:接收從通知中樞發布的通知。一個通知對象要包含的內容:1. (NSString *)name; // 通知的名稱2. (id)object; // 通知發行者3. (NSDictionary *)userInfo; //
Time of Update: 2014-05-30
利用Xib進行實現應用情境:像團購網站的列表資料顯示,新聞列表顯示等(由於該類的顯示的資料儲存格內容格式相同)(1)主控制器檔案,在檔案中實現了自己自訂的代理,載入資料, 1 #import "SLViewController.h" 2 #import "SLTgDatas.h" 3 #import "SLTableViewCell.h" 4 #import "SLFooterView.h" 5 #import "SLHeaderView.h" 6 7 @interface
Time of Update: 2014-06-03
C語言是靜態語言,它的工作方式是通過函數調用,這樣在編譯時間我們就已經確定程式如何啟動並執行。而Objective-C是動態語言,它並非通過調用類的方法來執行功能,而是給對象發送訊息,對象在接收到訊息之後會去找匹配的方法來運行。這種做法就把C語言在編譯時間的工作挪到了運行時來做,可以獲得額外的靈活性。
Time of Update: 2014-05-30
iOS—修改AFNetworking源檔案可接收text/plain的方法 在使用AFNetworking的時候可能會碰到下面的錯誤: { status code: 200, headers { "Content-Length" = 14; "Content-Type" = "text/plain;charset=utf-8"; Date = "Thu, 22 May 2014 10:37:50 GMT"; Server = "Apache-Coyote/1.1";
Time of Update: 2014-06-03
iOS開發UI篇—使用UItableview完成一個簡單的QQ好友名單(一) 一、項目結構和plist檔案 二、實現代碼 1.說明: 主控制器直接繼承UITableViewController 複製代碼 // YYViewController.h// 02-QQ好友名單(基本資料的載入)//// Created by apple on 14-
Time of Update: 2014-05-30
點擊按鈕後彈出圖片庫選擇圖片,然後返回給Button的image。- (IBAction)selectIcon { UIImagePickerController *imagePicker = [[UIImagePickerController alloc]init]; //設定圖庫源 [imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; //是否允許編輯圖片
Time of Update: 2014-05-30
擷取本機通訊錄中的內容,顯示在列表(table)中, iOS6之後,蘋果對系統中通訊錄日曆等控制項的調用進行了許可權控制,擷取通訊錄需加上請求許可權部分的代碼一、在工程中添加AddressBook.framework和AddressBookUI.framework二、擷取通訊錄1、在infterface中定義數組並在init方法中初始化NSMutableArray *addressBookTemp;- (id)initWithNibName:(NSString *)nibNameOrNil
Time of Update: 2014-05-30
如果在UINavigationController內設定一個UIViewControlller,而UIViewController的第一個子視圖是UIScrollView的話,UIScrollview裡面所有的subView都會發生下移, UIScrollView 尺寸問題 title=ios7 UIScrollView 尺寸問題> 代碼為- (void)viewDidLoad{ [super viewDidLoad]; UIScrollView *tempScroll =