Time of Update: 2014-08-22
iOS-
Time of Update: 2014-08-22
IOS編程
Time of Update: 2014-08-22
ios 頁面跳轉之間傳遞資料----通過delegate 主要用到了,兩個類,一個delegatea類,調用b類,當b類執行之後,需要把一個資料傳遞給a類,a類把這個資料顯示出來。1.delegate,就這一個標頭檔就足夠了。在類中去實現這個代理方法#import @protocolUIViewPassValueDelegate-
Time of Update: 2014-08-22
IOS開發之──應用之間調用(1),ios開發 iphone應用之間調用步驟: 1)在plist檔案中,註冊對外介面 在xcode group&files 裡面,展開 resources選擇<app>info.plist 滑鼠右擊information property list ,然後從列表中選擇URL types 右擊 add
Time of Update: 2014-08-22
cocos2d-x ios遊戲開發初認識(五) CCsprite精靈類這次寫一下精靈建立的幾種類型:一、通過檔案建立:在原有的基礎上添加如下代碼: //一、通過檔案建立精靈 CCSprite *bg =CCSprite::create("map.png"); CCSize winSize =CCDirector::sharedDirector()->getWinSize(); //得到螢幕的尺寸 bg->setPosition(ccp(winSize.width/2,
Time of Update: 2014-08-22
IOS開發之使用UIWebView實現圖文混排 一開始做第一個新聞資訊項目的時候,不知道可以使用UIWebView實現圖文並茂的效果,於是就用了最笨的方法,使用TableView解決的新聞瀏覽。當有點項目經驗後知道可以使用UIWebView或者CoreText實現,一直也沒有嘗試。當上次面試被問到怎麼使用WEbView進行新聞資訊展示時,當時就蒙圈了。回來以後,查閱資料發現原來如此簡單; 原文
Time of Update: 2014-08-22
iOS頁面跳轉及資料傳遞iOS頁面跳轉:第一種[self.navigationController pushViewController:subTableViewController animated:YES]; //描述:通過 NSNavigationBar 進行跳轉 [self.navigationController popViewControllerAnimated:YES]; //描述:在子視圖返回到上級視圖 第二種UIViewController *control =
Time of Update: 2014-08-22
IOS多線程_NSThread和NSInvocationOperation//雖然現在在多線程方面大多都在用GCD,當其他方式我們還是應該有所瞭解,給大家介紹一下NSThread和NSInvocationOperation的簡單用法@interfaceyxpViewController (){ UIImageView *_imageView; //聲明一個隊列 NSOperationQueue *_operationQueue;}@end@implementation
Time of Update: 2014-08-22
iOS開發- 隱藏狀態列(電池欄)分為兩種情況:1. 想要隱藏某個視圖的狀態列, 比如說, 從介面A, push 到介面B的時候, 介面A原本顯示狀態列, 然而我們需要介面B不顯示狀態列。這時候, 可以這樣做:在B中實現:- (void)viewDidLoad{ [super viewDidLoad]; if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
Time of Update: 2014-08-22
iOS_21團購_Popover適應iPad橫豎屏切換最終:程式碼片段:vc3Ryb25nPjwvcD4KPHA+PHByZSBjbGFzcz0="brush:java;">//// DockItemLocation.m// 帥哥_團購//// Created by beyond on 14-8-13.// Copyright (c) 2014年 com.beyond. All rights reserved.//#import "DockItemLocation.h"//
Time of Update: 2014-08-22
iOS: 學習筆記, 值與參考型別(譯自: https://developer.apple.com/swift/blog/ Aug 15, 2014 Value and Reference Type值和參考型別 Value and Reference Types在Swift中,有兩種資料類型. 一是"值類型"(value type), 它是每一個執行個體都儲存有各自的資料,通常定義為struct, enum或tuple. 二是"參考型別"(reference
Time of Update: 2014-08-22
iOS的URLScheme一直都有接觸要設定app的url scheme,從最早的facebook開始。當時的理解是SSO用的,當授權成功之後,facebook app或者safari可以利用給定的url scheme來回調程式。按照Facebook dev頁的指南,在Info.plist中加入url scheme。如何在info.plist中加入url scheme直接將info.plist用源碼開啟,加入如下代碼:CFBundleURLTypes
Time of Update: 2014-08-22
iOS隨機顏色#import @interface UIColor (RandomColor)+(UIColor *) randomColor;@end#import "UIColor+RandomColor.h"@implementation UIColor (RandomColor)+(UIColor *) randomColor{ CGFloat hue = ( arc4random() % 256 / 256.0 ); //0.0 to 1.0 CGFloat
Time of Update: 2014-08-22
iOS6之後 NSAttributedString 的福利 @在iOS6之前需要使用NSMutableAttributedString時都需要匯入:CoreText.framework架構的,但在iOS6 之後就不在需要了.- (void)testOfNSMutableAttributedStringAndNSAttributedString{ /** * - (void)addAttribute:(NSString *)name value:(id)value
Time of Update: 2014-08-22
IOS多線程_GCD的簡單使用和詳細說明//你可以先看看這個例子的效果找點感覺,再看說明@interfaceyxpGCDVController (){ UIImageView *_imageView;}@end@implementation yxpGCDVController- (void)viewDidLoad{ [superviewDidLoad];self.title=@"GCD"; //初始化一_ImageView
Time of Update: 2014-08-22
iOS_21團購_UICollectionView的基本使用最終:程式碼片段:DealListController繼承自UICollectionViewControllerself.view已經包含了一個UICollectionView並且資料來源和代理已經是當前控制器selfvc3Ryb25nPjwvcD4KPHA+PC9wPgo8cHJlIGNsYXNzPQ=="brush:java;">//// DealListController.m// 帥哥_團購//// Created by
Time of Update: 2014-08-22
iOS 實現QQ介面應師傅要求編寫個QQ介面來指教下My Code問題。編寫個QQ介面,有三個組,每個組有人,並顯示線上不線上;先看一下這裡省了事因為我的圖片只用了一張,如果要根據人的不同設定,只要在cell裡面改一下就行了;主要是實現點擊上面分組展開內容,再點擊收回去。廢話不多說,上菜:我們先來構造資料: NSArray * InitArray =@[ @{
Time of Update: 2014-08-22
iOS 多線程之NSThread簡單使用 1、線程的構建和開啟:(1)_thread1 = [[NSThread alloc]initWithTarget:self selector:@selector(threadOneMethod) object:nil]; _thread2 = [[NSThread alloc]initWithTarget:self selector:@selector(threadTwoMethod) object:nil]; [_thread1
Time of Update: 2014-08-22
IOS
Time of Update: 2014-08-22
用iOS的UI知識編出霓虹燈效果(經典小題) for (int i =0 ; i UIView *view = [[UIViewalloc]initWithFrame:CGRectMake(0 + i *20,0 + i *20,320 -40 * i ,568 - i *40)]; CGFloat color = (arc4random() %256 /255.0 ); CGFloat saturation =