iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.
presentViewController: crash on iOS <6 (AutoLayout)
This is a weird crash I am getting. The crash happens when I press a button that goes to a certain ViewController. The line which it crashes on is: DestinationInformationViewController *info = [[DestinationInformationViewController alloc] init]; [info setModalTransitionStyle: UIModalTransitionStyleCrossDissolve]; [self presentViewController:info animated:YES completion: nil]; // CRASHES HERE [info release]; The crash trace is: *** Terminating app […]
How to get a list of points from a UIBezierPath?
I have a UIBezierPath that I need to take a list of points from. In Qt there is a function called pointAtPercent that would fit my needs but I can’t find anything equivalent in Objective-C. Does anyone know how to do this?
How to add objects to a UIScrollView that extend beyond UIView from Storyboard?
I want to have several buttons and other objects in a long UIScrollView in my app. In storyboard, I added a UIScrollView to fill the entre view, and then created an IBOutlet in my .h file. I synthesized the scroller in my .m file, and then used the following code to start the scroller: @synthesize […]
How to use hex colour values
I am trying to use hex color values in Swift, instead of the few standard ones that UIColor allows you to use, but I have no idea how to do it. Example: how would I use #ffffff as a color?
Best practice? – Array/Dictionary as a Core Data Entity Attribute
I am new to Core Data. I have noticed that collection types are not available as attribute types and would like to know what the most efficient way is of storing array/dictionary type data as an attribute (e.g. the elements that make up an address like street, city, etc. does not require a separate entity […]
Auto layout constraints issue on iOS7 in UITableViewCell
I’m using auto layout constraints programmatically to layout my custom UITableView cells and I’m correctly defining the cell sizes in tableView:heightForRowAtIndexPath: It’s working just fine on iOS6 and it does look fine in iOS7 as well BUT when I run the app on iOS7, here’s the kind of message I see in the console: Break […]
Base64 Decoding in iOS 7+
I have Encoded text(NSString) using NSData Class new API which is Added in iOS7. using this – (NSData *)dataUsingEncoding:(NSStringEncoding)encoding; here is my code NSString *base64EncodedString = [[myText dataUsingEncoding:NSUTF8StringEncoding] base64EncodedStringWithOptions:0]; NSLog(@”%@”, base64EncodedString); I am looking to decode it
How to determine if an annotation is inside of MKPolygonView (iOS)
I’m trying to calculate if a specific annotation(like the blue circle of the user location) or a MKPinAnnotation is inside an MKPolygon layer on the mapview. Any advice to achieve this?