Time of Update: 2018-12-06
1.報錯10152.進入DFU模式,刷到下載資料停止不動。3.進入菠蘿,進度條走到最後停止不動。4.紅雪走到waiting for reboot停止不動。 針對上述問題:首先,要找到完全對應手機系統原版本的韌體。然後,紅雪進入DFU模式刷機,走到停止不動的地方,就重新刷,重新走一遍流程,就可以。我遇到的問題:iphone2代3G,要用iphone1,3.1.2韌體,紅雪用0.9beta,刷到走不動的地方就重新刷,解決問題。
Time of Update: 2018-12-06
簡單來說,在複製一個對象時並不是真的在記憶體中把原來對象的資料複製一份到另外一個地址,而是在新對象的記憶體映射表中指向同原對象相同的位置,並且把那塊記憶體的 Copy-On-Write
Time of Update: 2018-12-06
pid_t wait(int * statloc);pid_t waitpid(pid_t pid, int *statloc, int options); 兩 個函數都返回兩個值:函數的傳回值和終止的子進程ID,而子進程終止的狀態則是通過statloc指標返回的。wait&waitpid的區別是顯而易見 的,wait等待第一個終止的子進程,而waitpid則可以指定等待特定的子進程。這樣的區別可能會在下面這種情況時表現得更加明顯:當同時有5個客戶
Time of Update: 2018-12-06
There’s something a little peculiar about how unit tests work in Silverlight when the debugger is attached – when an Assert fails in one of your unit tests, the Visual Studio debugger breaks the execution and brings up the debugger dialog.If you
Time of Update: 2018-12-06
對象的賦值與複製: 賦值:通過“ = ”運算子多載User a(10),b;b = a;複製:調用複製建構函式User b;User a(b);或者User a = b;//相當於User a(b);與賦值的區別,賦值是對一個已經存在的對象進行賦值(已經實現定義了被賦值的對象),而複製是從無到有建立一個新的對象,並使它與已有的對象相同。淺複製與深複製:
Time of Update: 2018-12-06
1 class Student 2 { 3 public: 4 /*******************成員函數**************************/ 5 Student();//預設建構函式,若定義了有參建構函式,預設建構函式會被覆蓋,需手動再定義,否則無法調用 6 ~Student();//解構函式 7 /*解構函式,在對象的生存期結束時自動執行 8 1、局部對象,在出範圍時執行其解構函式 9
Time of Update: 2018-12-06
1、vi的幀場資料格式為VIDEO_FIELD_INTERLACED(3) 頂場底場資料按行交錯排列。 top line0 bot line0 top line1 bot line1 ... 1700輸出的1D1,16個通道,通道0~7在頂場,8~15在底場 所以從vi擷取ch0的yuv資料時,需要丟棄偶數場2、VO的幀場資料格式為VIDEO_FIELD_TOP或者VIDEO_FIELD_BOTTOM 先頂場再底場 top line0
Time of Update: 2018-12-06
The mutex passed to pthread_cond_wait protects the condition.The caller passes it locked to the function, which then atomically places them calling thread on the list of threads waiting for the condition and unlocks the mutex. This closes the window
Time of Update: 2018-12-06
Makefile自動依賴 Makefile產生自動依賴的方法有兩種:1. 將所有.o檔案的依賴關係寫入單獨檔案,然後在Makefile中調用該檔案2. 每個.c檔案對應一個.d檔案,將依賴關係寫入.d檔案中 一、對於第一種方法,Makefile的寫法如下:#file startCC = gccSRCS := $(wildcard *.c)OBJS := $(patsubst %.c,%.o, $(SRCS)) all: main main: $(OBJS) $(CC)
Time of Update: 2018-12-06
1. 使用ulimit -a,查看core檔案的資訊。 core file size,這一行為0,則表示關閉了此功能,不會產生core檔案。2. 開啟core dump。 在當前編譯的終端,使用ulimit -c unlimited命令,允許當前產生沒有大小限制的core file. (unlimited也可以為產生core檔案的大小,單位為kbyte.)3. 當程式crash退出時,核心會在當前工作目錄下產生一個core檔案(是一個記憶體映像,同時加上調試資訊)。4.
Time of Update: 2018-12-06
假設交換器A的前23個連接埠串連著23台電腦,這些mac地址是A1到A23;交換器A的第24口和交換器B的第1個連接埠進行級聯,那麼,在系統mac地址學習完成後,在交換器B的工作表中,A1到A23這23個mac地址都是和第1個連接埠相關聯的。 另外,交換器B中並不儲存交換器A內部地址表中A1到A23這23個mac地址和交換器A的哪個連接埠相對應的關係,交換器B只要知道凡是目的mac地址在A1到A23之中任意一個的,全部發往自己的1號連接埠。
Time of Update: 2018-12-06
不多說了,直接上代碼。複製可用CustomerTabBarController.h @interface CustomerTabBarController : UITabBarController {}@endCustomerTabBarController.m @implementation CustomerTabBarController//@synthesize tabBarTest;- (void)viewDidLoad {//方法一,使用顏色自訂UItabBar :/*
Time of Update: 2018-12-06
關於如何隱藏UITabbar的問題,曾經困擾過很多人。1,設為Hidden, 這種方法雖然將TabBar隱藏掉,但是下面是一片空白,沒有起到隱藏的實際功效2,設定tabbar.frame = CGRectMake(0,480+);既將tabbar的frame 降低到螢幕一下。 這種方法也不行。 其實iphone SDK裡面有一個參數,可以直接隱藏掉UITabBar: UIViewCtrlTest* testCtrl = [[UIViewCtrlTest alloc]
Time of Update: 2018-12-06
清明小短假天氣不給力,加上H7N9威力比較大,因此本屌基本上是在家宅了三天。由於一直想寫個外掛程式來添加著作權資訊,正好有時間,就研究了一下。關於VS外掛程式開發,我主要是參考園子裡Anders
Time of Update: 2018-12-06
先上:直接貼上完整的實現代碼, 看不懂的地方自己google查詢,學習。CustomPolylineView.h //create by suruiqiang 10.10.8#import <UIKit/UIKit.h>// 點狀圖@interface CustomPolylineView : UIView {NSArray* dataSource;NSMutableArray* dataSourceAfterPorcess;float maxValue, minValue,
Time of Update: 2018-12-06
曾經在cocoachina上看到過繪製的立體的柱狀圖,效果非常不錯,下面是連結,http://www.cocoachina.com/bbs/read.php?tid-9462-toread-1.html NTChartView.h#import <Foundation/Foundation.h>@interface NTChartView : UIView {//組資料,只實現一個組NSArray *groupData;//最大值,最小值, 列寬度, float
Time of Update: 2018-12-06
CGContextAddArc是一個比較強大的函數,建議仔細看一下iphone的開發文檔。CGContextAddArc(CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, intclockwise) CGContextRef: 圖形上下文x,y: 開始畫的座標radius: 半徑startAngle, endAngle: 開始的弧度,結束的弧度clockwise:
Time of Update: 2018-12-06
本人在開發過程中自己寫的控制項一般產生代碼 UIkitElements.h//// UIkitElements.h// DigitGolf//// Created by suruiqang on 8/5/10.// Copyright 2010 __MyCompanyName__. All rights reserved.//#pragma once#import <Foundation/Foundation.h>#import
Time of Update: 2018-12-06
有時候需要讓整個 BgEngine.h #import <UIKit/UIKit.h>@interface BGView : UIView{CGGradientRef gradient;}@end BgEngine.m #import "BgEngine.h"@implementation BGView-(id)initWithFrame:(CGRect)frame{self = [super initWithFrame:frame];if(self !=
Time of Update: 2018-12-06
1,document 中的路徑 最麻煩的一種:NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *writableDBPath = [documentsDirectory