Dear all
I am trying to display two different arrays in one tableView.
I declared "years" array as strings and "amount" array as integers.
years amount
e.g: 2012, 2013 .... 155888, 151768
When I build7run the…
i have a class 'book.h' in which i have declared
Book.h
NSInteger WeatherID;
NSString *Description;
NSURL *PictureURL;
BookDetailview.h
#import
@class Book, XMLAppDelegate;
@interface…
I have two variables that I need to compare, in order to check if an index exists in an array:
indexPath.row is NSInteger
[self arrayOfData].count is NSUInteger
The problem is that they are of different types and when indexPath.row=-1 it gets…
Hello everyone I'm using Firebase for my ios project ...
I have a lot of trouble using the values of my variables outside of the Firebase blocks when I query the database.
For example in this case I'm trying to get a number value from this query…
I have an iOS app that has video upload functionality. I need to upload video data to a server that has very specific upload requirements: max file size 15 MB and the file upload must be uploaded via chunks that do NOT exceed 5 MB.
I am using…
I am coming from swift background, I have a code in objective -c that take value from server and it takes correctly here is the code bellow.
if (![message_expiration intValue]){
NSLog(@"Check the message expiration integer value");
…
I am trying to return the index of a word in a string but can't figure out a way to handle case where it is not found. Following does not work because nil does not work. Have tried every combination of int, NSInteger, NSUInteger etc. but can't find…
I have the following code:
NSUInteger one = 1;
CGPoint p = CGPointMake(-one, -one);
NSLog(@"%@", NSStringFromCGPoint(p));
Its output:
{4.29497e+09, 4.29497e+09}
On the other hand:
NSUInteger one = 1;
NSLog(@"%i", -one); // prints -1
I know…
I was trying to validate and upload my app to app store.But it ended up with a error as Error Missing 64-bit
I made changes by adding arm64 in valid architectures and standard architectures(armv7,arm64) - $(ARCHS_STANDARD)
Build Active Architecture…
Xcode reports me the following warning:
Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int')
The line which produces this warning is:
NSUInteger radius = // some value;
…
I am a Jr Software Developer, can I just change the (unsigned) to (NSUInteger) or will to create problems later?
- (unsigned)retainCount
{
return UINT_MAX; //denotes an object that cannot be released
}
warning said
MKStoreManager.m:88:1:…
I have a fairly large app (objective-c), I decided to turn on the "Sign Comparison" warnings. I now have almost 100 of them. Most of them are similar to this:
if (recentSearches.count > indexPath.row) {
//something
}
and the errors are similar…
error:
collection element of type nsuinteger aka unsigned long is not an
objective c object
I am trying to make an http request to stripe. This is what the params look like
@"card": card.number, @"exp_month": card.expMonth, @"exp_year":…