English 中文(简体)
将NSNumber带往IDnt32
原标题:Error passing NSNumber to UInt32

我正试图将一枚NSNumber带入“IDnt32”变量中,这似乎在发挥作用,但当我把“IDnt32”的数值记录下来时,我 st。

这就是我的准则。

if ([methodName isEqualToString:@"Manu"]) {
        cacheNumber = [cacheValue objectForKey:@"Manus"];

        NSLog(@"%@", cacheNumber); // This produces the correct number
    }

    UInt32 CACHE_VALUE = [cacheNumber intValue];
    NSLog(@"%@", CACHE_VALUE); // This is where my thread gets stuck

这是我在试图通过第二次国家后勤记录仪时产生的信号(因为我已经对这两个记录仪进行故障检查,以检查其产出)。

Single stepping until exit from function objc_msgSend, which has no line number information.

any help would be greatly appreciated

最佳回答

你印制了一架国家安保统计台,而不是一台探测器。

    NSLog(@"%lu", CACHE_VALUE); // This is where my thread gets stuck
问题回答

当你再伐木时,就应当使用占多数(dec)的持股人,而不是按%(目标)来做。

NSLog(@"Value: %d", CACHE_VALUE);




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签