Time of Update: 2016-01-23
標籤:主控制器的關鍵代碼:一 ViewController.m#import "ViewController.h"#import "ZRPaintView.h"#import "UIImage+ZR.h"@interface ViewController ()- (IBAction)clear;- (IBAction)back;- (IBAction)save;@property (weak, nonatomic) IBOutlet ZRPaintView
Time of Update: 2016-01-23
標籤:主控制器的關鍵代碼:ViewController.m#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextView *textF;@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //1. 建立一行背景圖 CGFloat
Time of Update: 2016-01-23
標籤:商務通手機網站擊商務通無軌跡解決方案手機網站擊商務通諮詢按鈕是很多時候會出現後台無法統計到訪客的瀏覽軌跡的情況,這種情況是因為部分手機瀏覽器開啟新的頁面不傳遞來路頁面地址資訊所導致的。下面為大家介紹一種能解決這一情況的方法:代碼如下<script type="text/javascript">function online(){ //商務通軌跡 var e = ‘wap‘; if(arguments.
Time of Update: 2016-01-23
標籤: 1 @interface NJView () 2 /** 3 * 定義一個大數組(大數組中儲存小數組, 每一個小數組儲存一條直線所有的點) 4 */ 5 @property (nonatomic, strong) NSMutableArray *totalPoints; 6 7 @end 8 9 @implementation NJView 10 11 - (NSMutableArray *)totalPoints 12 { 13 if
Time of Update: 2016-01-23
標籤:在這個大冬天裡默默敲著鍵盤,勿噴.今天學習swift過程中,學習到閉包,發現閉包和oc的block中有很多的相同之處,又重新學習了一下並且學習了一些進階點的用法,內容如下:1.block格式說明:(傳回型別)(^塊名稱)(參數類型) = ^(參數列表) {代碼實現};//如果沒有參數,等號後面參數列表的()可以省略例子:void(^demoBlock)() = ^ { NSLog(@"demo Block");};int(^sumBlock)(int,
Time of Update: 2016-01-23
標籤:B要傳值給A1.控制器B中要有一個Block:typedef void (^MyBlock)(NSString* str1,NSString* str2);str1和str2裡存放著要傳遞的參數2.還要有一個以Block為參數的方法-(void)chuanzhi:(MyBlock)block{
Time of Update: 2016-01-23
標籤:IOS開發之ZBarReaderView的使用HOMEABOUTGUESTBOOKCATEGORIESTAGSLINKSSUBSCRIBE當開發IOS程式中需要用到二維碼識別功能的時候,zbar這個開源庫估計會被不少人選擇。但是關於zbar的用法,網上的資料大部分都集中在ZBarReaderViewController這個類的使用上。本人在使用中,發現ZBarReaderViewController這
Time of Update: 2016-01-23
標籤: 1 // 當手指在view上移動的時候調用 2 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 5 UITouch *touch = [touches anyObject]; 6 // 0. 擷取上一次的位置 7 CGPoint prePoint = [touch previousLocationInView:self]; 8 9 //
Time of Update: 2016-01-23
標籤:1、android的四大組件的了大概功能 activity:負責顯示介面,和使用者互動。 service:運行在後台。 content
Time of Update: 2016-01-23
標籤:在文章《Android程式員從小白到大神必讀資料匯總(一)》裡面介紹了幾篇Android入門和提升效率的技術資料,今天小編收集了5篇進階的資料,趕緊來看看吧!另外,歡迎大家加入工程師博主交流群:391519124,交流部落格經驗和技術一、Android開發相見恨晚的方法和介面 Android開發中,有哪些讓你覺得相見恨晚的方法、類或介面?二、Android 多渠道打包原理和使用 學會安卓 APP 多渠道打包的技巧,讓你的APP開發更高效三、Google Java
Time of Update: 2016-01-23
標籤://// ViewController.m// text//// Created by 李東旭 on 16/1/22.// Copyright © 2016年 李東旭. All rights reserved.//#import <UIKit/UIKit.h>#import "ViewController.h"// 定義個宏,方便實用,>> 16 的意思是把16進位轉換成2進位後,右移16位(移動掉的直接捨棄)#define
Time of Update: 2016-01-23
標籤: 1 - (void)drawRect:(CGRect)rect 2 { 3 // 1.擷取上下文 4 CGContextRef ctx = UIGraphicsGetCurrentContext(); 5 6 // 2.建立路徑(一個path就代表一條路徑) 7 // 但凡通過quarzt2d中的帶有create/ copy / retain 方法建立出來的值都必須手動的釋放 8 CGMutablePathRef path =
Time of Update: 2016-01-23
標籤: 在Android編程的過程中,如果在Activity中某個操作會運行比較長的時間,比如:下載檔案。這個時候如果在主線程中直接下載檔案,會造成Activity卡死的現象;而且如果時間超過5秒,會有ANR報錯。在這種情況下,
Time of Update: 2016-01-23
標籤:- (void)action:(id)sender{UIButton * button = sender;[button setTitle:@"清理完畢" forState:UIControlStateNormal];NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);NSString *path = [paths
Time of Update: 2016-01-23
標籤: 今天早上申請了一個早上的渠道帳號,這工作真是太繁瑣,申請的是企業帳號,須要營業執照等相關資料,假設申請個人的話預計須要身份證相關資訊。以下貼出國內主流的幾個渠道。不全然,可是基本上涵蓋了大部分。360移動開放平台地址:http://dev.360.cn/ 豌豆莢地址:http://open.wandoujia.com/ 百度手機小幫手地址:http://app.baidu.com/
Time of Update: 2016-01-23
標籤:app:transformclasseswithdexfordebug' finished with non-zero exit value 1Error:Execution failed for task ‘:app:transformClassesWithDexForDebug‘.> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:
Time of Update: 2016-01-23
標籤:隨機密碼 郵箱
Time of Update: 2016-01-23
標籤:Android中,可以四給不同層次上開啟硬體加速:1、應用:<application android:hardwareAccelerated="true">2、Activity<activity android:hardwareAccelerated="true">3、WindowgetWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
Time of Update: 2016-01-23
標籤: 1 - (void)drawRect:(CGRect)rect 2 { 3 // Drawing code 4 5 // 畫圓, 以便於以後指定可以顯示內容約制 6 CGContextRef ctx = UIGraphicsGetCurrentContext(); 7 8 CGContextAddEllipseInRect(ctx, CGRectMake(100, 100, 50, 50)); 9 10 //
Time of Update: 2016-01-23
標籤:轉自:http://xiechengfa.iteye.com/blog/1044721 一些常見的Android面試基礎題做下總結,看看你能做出多少道? 1. Intent的幾種有關Activity啟動的方式有哪些,你瞭解每個含義嗎? 這裡Android123提示大家,Intent的一些標記有FLAG_ACTIVITY_BROUGHT_TO_FRONT