简体   繁体   中英

iOS 64 Bit Count

In this UITable methode I get the number of sections in my table:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return [[self.myMutableDictonary allKeys] count];
}

Everything works fine on 64 Bit devices and simulator. But on older devices/simulators my table shows 0 sections or 1 section (random). However there should be 15 sections like in the 64 Bit Versions.

I know it has to be something with 64/32 Bit, but I have no idea what the reason is.

Thank you for your help. You were right, it has nothing to do with count.

I compared NSDates in my app with the '<' sign. Apparently this is possible with 64 Bit devices and provides good results. However with 32 Bit devices it provides random results.

Now I use the - (NSComparisonResult)compare:(NSDate *)anotherDate methode. Everything works fine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM