nslog

    0熱度

    1回答

    我有一個的UITextField,而我已經添加了所有類型的事件 [textField addTarget:self action:@selector(log:)forControlEvents:UIControlEventAllTouchEvents]; 現在,在日誌的行爲:方法我想輸出的事件名稱 - (void)log:(id)sender { NSLog(@"%@",event); }

    3熱度

    2回答

    當我嘗試使用的NSLog,如: NSLog(@"one" @"two" @"three"); 這部作品,並打印控制檯onetwothree。但是當我嘗試使用這樣的 NSString *s = [NSString stringWithFormat:@"three"]; NSLog(@"one" @"two" s); 上述不工作,我得到一個編譯時錯誤,「預期」)'「。我不知道該怎麼做。 有幫

    2熱度

    3回答

    我沒有關於目標c變量參數函數的清晰想法。我想寫一個函數,它將採用一個nlsog類型的參數,但有時我會在該函數中使用NSLog。我怎樣才能做到這一點? -(void) printStatus:(NSString*)status, ... { // I want use use NSLog with all these parameter here. // some gui l

    -2熱度

    3回答

    我有一個大項目,並且有很多NSLog()調用。當發生某些NSLog()工作時,我不知道哪個NSLog被調用。如何找到NSLog()在類文件中被調用的地方? 我NSLog是這樣的:NSLog(@"%@", someArray); 和這裏的日誌: 2013-04-23 20:43:38.257 myProj[2101:707] { id = 1; version = 1; }

    2熱度

    2回答

    我真的需要知道日誌文本中針對項目名稱的數字意味着什麼。 例如: 2013-04-24 12:00:00:000 ProjectName[xxxxx:xxx] Some Log Text 此處[XXXXX:XXX]是一些數我需要了解..

    2熱度

    1回答

    我上,採用ADMS iOS中的一個項目工作,我覺得像這樣的東西LOG惱人: 2013-05-01 21:20:12.265 MyProject[1550:907] Hit Parameters : { c = { a = " { AppID = MyProject (1.0) CarrierName = (null) La

    1熱度

    1回答

    我不明白這裏發生了什麼。我在AppDelegate中連入以下動作的按鈕: - (IBAction)openWindow:(id)sender { self.winCon = [[NSWindowController alloc] initWithWindowNibName:@"NewWindow"]; } 在按鈕沒有任何的點擊情況(如預期),但是當我改變的代碼(添加NSLog())

    2熱度

    1回答

    我可以訪問屬性聲明,如下所示: @property (nonatomic, assign, getter = isPrivateSickDay) BOOL privateSickDay; - (BOOL)isPrivateShortDay; 使用下列內容: int sick = aModel.privateSickDay; NSLog(@"zero for not sick, one

    0熱度

    1回答

    我想獲取用戶當前的位置,我發現該解決方案在計算器中:How to find your current location with CoreLocation。 但儘管這種解決辦法的我得到的消息上的NSLog: 2013-05-07 23:57:56.962 XXXXX[1951:c07] Latitude:(null),Longitude:(null) 這裏是我做了什麼: 在頭文件: #import

    0熱度

    1回答

    我正在用戶的位置,此代碼: @implementation TabBar CLLocationManager *locationManager; - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation