Time of Update: 2018-07-24
我們有時候在點擊tabBaritem,是需要登入判斷,那我們該如何進行判斷呢,好比點擊購物車,我們需要使用者判斷登入我們要怎麼判斷呢這個就要用到TabBarController裡的一個協議方法例如: #pragma mark 判斷是否登入若沒登入跳轉到登入頁面 - (BOOL)tabBarController:(UITabBarController *)tabBarController
Time of Update: 2018-07-24
1.建立project,拖出兩個imageview和兩個button,分別關聯代碼 2.button action中加入 - (IBAction)save:(id)sender { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
Time of Update: 2018-07-24
1、自訂UISearchBar的子類MySearchBar,重寫layoutSubviews方法。 代碼: - (void)layoutSubviews {[super layoutSubviews];for (UIView *view in self.subviews){if ([view isKindOfClass:NSClassFromString(@"UIView")] && view.subviews.count > 0) {for (
Time of Update: 2018-12-03
1.需要支援庫MediaPlayer.framework2.代碼MPMoviePlayerController *mPlayer = [[MPMoviePlayerController alloc] init];//視頻地址 本地NSString *path = [[NSBundle mainBundle] pathForResource:@"filename" andType:@"filetype"];NSURL *url = [NSURL
Time of Update: 2018-12-03
========== (one) UIImage 映像 等比例縮放==================================PicAfterZoomWidth:縮放後圖片寬 PicAfterZoomHeight:縮放後圖片高 (預定義)#define PicAfterZoomWidth 320#define PicAfterZoomHeight 480+ (UIImage *)getPicZoomImage:(UIImage *)image { UIImage *img =
Time of Update: 2018-12-03
網路上有很多文章介紹iOS開發人員帳號註冊過程,大都差不多。我參考了 http://blog.csdn.net/xdonx/article/details/7330107
Time of Update: 2018-12-03
UIImage *srcimg = [UIImage imageNamed:@"test.png"];////test.png寬172 高192NSLog(@"image width = %f,height = %f",srcimg.size.width,srcimg.size.height);UIImageView *imgview = [[UIImageView alloc] init];imgview.frame = CGRectMake(10, 150, 300,
Time of Update: 2018-12-03
剛剛更新過的代碼出現了問題,在上傳之前的驗證就不通過,提示 Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice. Please update your apps and servers to associate users with the Vendor or Advertising identifiers introduced in iOS
Time of Update: 2018-12-03
問題描述: 最近在做一個項目,需要做一個含有圖片資源得靜態庫.a,但是蘋果提供得靜態庫工程無法將圖片資源匯入,只能通過外加.bundle檔案的方式,這樣在調試階段也需要使用bundle檔案,而每次更新bundle檔案的內容時都需要重新編譯bundle工程,產生新的bundle檔案。解決方案: 在圖片資源不多的時候,其實可以將圖片轉換成base64的string,通過static方式儲存。需要用的時候再通過base64解析成data,最後完成顯示。NSString
Time of Update: 2018-12-04
在查資料的時候無意間看見無限互聯iOS開發視頻教程,很好的資源,分享給需要的iOS開發人員們;資源來自 懶人ios程式碼程式庫-www.lanrenios.com視頻目錄:無限互聯iOS開發視頻教程:1.1.iPhone開發概述-必看-熊彪.mov(294.86MB)無限互聯iOS開發視頻教程:2.1.iPhone開發工具安裝及介紹-熊彪.mov(170.63MB)無限互聯iOS開發視頻教程:2.2.OC變數和基礎資料型別 (Elementary Data Type)1-熊彪.mov(128.4
Time of Update: 2013-12-10
這幾天因為住的地方的網出了一點問題,除了能上Q,上微博以外其他的網頁全都無法登陸。部落格也就沒有跟進。今天恢複了,所以繼續更新部落格。也希望大家能繼續評論或私自給我一些建議或者交流:-) 今天找到了以前一個TableView的例子,主要關於上下拉重新整理的,所以寫了一個demo,然後更新到部落格上來。 內建重新整理 內建重新整理是蘋果IOS6以後才推出的一個API,主要是針對TableViewController增加了一個屬性,refreshControl,所以如果
Time of Update: 2013-12-10
Time of Update: 2013-12-10
Using C++ With Objective-C 蘋果的Objective-C編譯器允許使用者在同一個源檔案裡自由地混合使用C++和Objective-C,混編後的語言叫Objective-C++。有了它,你就可以在Objective-C應用程式中使用已有的C++類庫。 Objective-C和C++混編的要點 在
Time of Update: 2013-12-10
要做APP的IPHONE版,小組中大家都不會,畢竟IPHONE開發對學生來說門檻還是很高的,主要是硬體成本,一個MAC電腦大約要一萬多,普通人家的孩子根本買不起。所以,只要自己硬著頭皮來學了,也會將學習筆記一一寫出來供大家參考。
Time of Update: 2013-12-10
- (void) recordVideo: (id) sender { UIImagePickerController *ipc = [[UIImagePickerController alloc] init]; ipc.sourceType = UIImagePickerControllerSourceTypeCamera; ipc.delegate = self; ipc.allowsEditing =
Time of Update: 2013-12-10
因為介面美化的需要,原有的控制項SearchBar控制項太醜了,又懶的研究SearchBar控制項的新樣式,所以決定重寫個搜尋功能的控制項。建立個UITextField的類對象。[cpp] searchField= [[[UITextField alloc]initWithFrame:CGRectMake(0,5,320,36)] autorelease]; searchField.textColor= [UIColorcolor WithRed:0.0/255.0 green:103
Time of Update: 2013-12-10
解決好OS 的基本介面後,接下來考慮GUI的設計。 嵌入式行業通常的GUI架構如下:IDE (第四代指令碼語言) : 將使用者的設計轉化為RTE支援的第三代語言 (C或者C++) RTE :
Time of Update: 2013-12-10
目標 回顧基本組件視窗和視圖 瞭解 IOS UIKit 架構中常用視圖組件 顯示控制項-標籤 UILabel 顯示控制項-文字框控制項 UITextField 控制控制項-按鈕 UIButton 控制控制項-開關
Time of Update: 2013-12-10
1 前言這節我們將用一個簡單的應用:繪圖應用,我們叫他TouchPainter。來展示設計模式和最佳做法,希望能從中得到啟發。2 詳述2.1 設計過程中的3個重要裡程碑2.1.1 想法的概念化彙集有關TouchPainter應用的一些基本需求和用例,比如使用者應該怎樣使用,以及使用者使用時的體驗。2.1.2
Time of Update: 2013-12-10
UIWindow &