Time of Update: 2014-12-03
iOS 通用交叉編譯指令碼唔. 一般在pc上我們都是./configuremakemake install一套打完收工..但是ios上怎麼破.? -0- 主要是一些環境需要手動設定...這裡寫了一些比較常見的環境.把這玩意放到configure同路徑下. 執行這指令碼就OK了.測試bson和lame庫都OK#!/bin/bash BUILD_I386_IOS_SIM=1BUILD_ARMV7_IPHONE=1BUILD_ARMV7S_IPHONE=1BUILD_TARGET=lame
Time of Update: 2014-12-03
IOS 九宮格實現思路根據要求 顯示圖片 以九宮格形式排放 基本思路 //顯示總列數 可以隨意改變 int columnCount=3; //沒個格子的寬度和高度 CGFloat appW=85.0; CGFloat appH=95.0; //計算間隙 CGFloat
Time of Update: 2014-12-03
iOS中建立數組的簡易方法與手勢的使用其實做外包也是挺不錯,雖然累點,但是一天天的知識的擴充不少,下面是今天的收穫①初始化數組一字典的方法@[] 初始化不可變數組@{} 初始化不可變字典②手勢的使用iOS中處理手勢之前是用四個方法:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent
Time of Update: 2014-12-03
iOS常用到的圖片功能:截取當前螢幕/選擇本地圖片/圖片壓縮截取當前螢幕UIGraphicsBeginImageContextWithOptions(CGSizeMake(CGRectGetWidth(self.superview.frame), CGRectGetHeight(self.superview.frame)), NO, 1);[self.superview drawViewHierarchyInRect:CGRectMake(0, 0,
Time of Update: 2014-12-03
iOS藍芽編程藍芽編程最近公司新來了一部藍芽小票機器,需要對其進行編程,所以閱讀起了iOS藍芽編程的官方文檔,昨日測試成功,想寫下點心得,方便以後查看。言歸正傳。iOS的藍芽架構是支援藍芽4.0協議的。理解iOS CoreBluetooth兩個很重要的概念,Central 和 Periperal
Time of Update: 2014-12-02
利用圖片序列建立動態圖片效果,圖片序列建立動態代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //顯示圖片的UIImageView UIImageView *imageview=[[UIImageView alloc]initWithFrame:CGRectMake(50, 100, 200, 200)];
Time of Update: 2014-12-02
設定textView或者label的行間距方法,textviewlabel : 代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //UILabel UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(50, 100, 200, 300)];
Time of Update: 2014-12-01
iOS截屏功能,ios截屏代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIImage *image = [self screenshot:UIDeviceOrientationPortrait isOpaque:YES
Time of Update: 2014-11-29
[iOS基礎控制項,ios基礎控制項原圖: 900 x 1305 1 // 2 // ViewController.m 3 // ImageZoom 4 // 5 // Created by hellovoidworld on 14/11/28. 6 // Copyright (c) 2014年 hellovoidworld. All rights reserved. 7 // 8 9 #import "ViewController.h"10 11 @interface
Time of Update: 2014-12-01
[iOS基礎控制項,ios基礎控制項A.需求1.使用只有一個section的TableView來顯示LOL 的英雄列表2.內容包括標題、副標題、表徵圖3.使用plain樣式4.使用MVC模式 1 // 2 // Hero.h 3 // LOLHero 4 // 5 // Created by hellovoidworld on 14/12/1. 6 // Copyright (c) 2014年 hellovoidworld. All rights reserved. 7 //
Time of Update: 2014-11-28
cell的摺疊,cell摺疊:工程圖:代碼中需要引入第三方庫QQView.代碼:AppDelegate.h#import <UIKit/UIKit.h>//加入標頭檔#import "myQQView.h"@interface AppDelegate : UIResponder <UIApplicationDelegate>{ myQQView *qqview;}@property (strong, nonatomic) UIWindow *window;@end&
Time of Update: 2014-11-28
下拉選項cell,下拉cell:工程圖:此代碼要匯入第三方庫comboBox.代碼:RootViewController.h#import <UIKit/UIKit.h>//加入標頭檔#import "ComboBoxView.h"@interface RootViewController : UIViewController{ ComboBoxView *_comboBox;}@end RootViewController.m-
Time of Update: 2014-11-26
[ios]ipad下的splitViewController
Time of Update: 2014-11-26
安卓開發中Spinner控制項的使用,安卓spinner 在安卓手機應用開發中,Spinner對象常用方法有以下五種。 用法 1 :以資源方式,靜態展示 Spinner 選項 用法 2 :以代碼方式,動態展示 Spinner 選項 用法 3
Time of Update: 2014-11-25
ios UITextView 提示文本定義兩個UITextView,一個用於輸入文本,一個用於顯示提示資訊,當輸入文本為空白時顯示提示資訊,否則不顯示提示資訊。 //6.3.1文字內容提示 _contentTextViewTip = [[UITextView alloc] initWithFrame:CGRectMake(12, 5, WIDTH_SCREEN - 12 - 12, 105)]; if (_contentTextViewTip !=
Time of Update: 2014-11-21
iOS 7 UI 過渡指南 - 界定範圍(iOS 7 UI Transition Guide - Scoping the Project)iOS 7 UI Transition GuidePreparing for TransitionBefore You StartScoping the ProjectSupporting iOS 6Updating the UIAppearance and BehaviorBars and Bar ButtonsContent
Time of Update: 2014-11-21
iOS 7 UI 過渡指南 - 開始之前(iOS 7 UI Transition Guide - Before You Start)iOS 7 UI Transition GuidePreparing for TransitionBefore You StartScoping the ProjectSupporting iOS 6Updating the UIAppearance and BehaviorBars and Bar ButtonsContent
Time of Update: 2014-11-20
ios之介面之間的資料正逆向/多層次傳遞方法1 初始化傳值(重寫init方法,讓後面攜帶需要傳入的資料,然後在對介面初始化,使用這種方法必須要在初始化前就已經有資料了比較適合)#import @interface CustomView : UIView// 需要注意必須在 (.h)對方法進行聲明 在外部建立這個類的時候才能看到- (instancetype)initWithFrame:(CGRect)frame withInformation:(NSDictionary
Time of Update: 2014-11-19
1.2UISwitch 1.3 自訂UIswitch 1.4pickerView,1.2 UISwitch建立和使用開關問題你想給你的使用者開啟一個選項或關閉的能力。解使用UISwitch類。討論該UISwitch類提供像在圖1-7為自動大寫,自動校正,等等所示的開/關控制。 圖1-7。UISwitch用在iPhone上的應用程式的設定為了建立一個開關,你可以使用Interface
Time of Update: 2014-11-16
iOS- PCH檔案的作用 & XCode建立Pch檔案的方式: 在老版本的XCode裡面,建立項目之後會自動建立有pch檔案,在裡面往往寫一些經常使用的架構標頭檔或者一些宏定義的URL地址,這裡面定義後可全域使用,但是在Xcode6裡面項目建立後不再內建pch檔案。pch全稱為“precompiled header”,也就是先行編譯標頭檔,有利於節約開發時間、代碼維護時間。 建立方式 New File : 取名字 Next