I want to check if the iOS version of the device is greater than 3.1.3 I tried things like: [...
How do I convert an NSString value to NSData? 14 s 14 NSString* str = @"teststring"; NSData* data =...
I’m updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there is an ad ...
-
April 15, 2022
- 0 Comments
In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, but does this mean that one ...
-
April 15, 2022
- 0 Comments
I don’t think I fundamentally understand what an enum is, and when to use it. For example: typedef enum { kCircle, kRectangle, kOblateSpheroid ...
-
April 15, 2022
- 0 Comments
Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general? For example, I’d like to ...
-
April 14, 2022
- 0 Comments
How can I check if a string (NSString) contains another smaller string? I was hoping for something like: NSString *string = @"hello bla ...
-
April 13, 2022
- 0 Comments
I’m getting the following warning by the ARC compiler: "performSelector may cause a leak because its selector is unknown". Here’s what I’m doing: ...
-
April 13, 2022
- 0 Comments
What I want to do seems pretty simple, but I can’t find any answers on the web. I have an NSMutableArray of objects, ...
-
April 13, 2022
- 0 Comments