Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

BOOL to NSString

If I have a method that returns a BOOL, how do I cast that to an NSString so I can …

objective-c nsstring boolean
Error '_BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND" in Cordova app on iOS 10

Everything works fine till I build my cordova application with Xcode 7.3.0 but it started crashing only on iOS 10 devices after …

objective-c cordova ios10 xcode8
UICollectionView: how to detect when scrolling has stopped

I'm using a UICollectionView to scroll through a set of thumbnails quickly. Once scrolling ends, I'd like to display a …

ios objective-c ios6 uicollectionview
UILabel auto resize on basis of text to be shown

I'm working on an application, in which I'm required to autoresize the text area on basis of text to be …

ios objective-c uilabel uitextview
How dangerous is it to compare floating point values?

I know UIKit uses CGFloat because of the resolution independent coordinate system. But every time I want to check if …

objective-c ios c floating-point floating-accuracy
How to update existing object in Core Data?

When I insert new object I do with following code: NSManagedObjectContext *context = [appDelegate managedObjectContext]; Favorits *favorits = [NSEntityDescription insertNewObjectForEntityForName:@"Favorits" inManagedObjectContext:…

objective-c core-data
Best practices for overriding isEqual: and hash

How do you properly override isEqual: in Objective-C? The "catch" seems to be that if two objects are equal (as …

objective-c equality
Fade/dissolve when changing UIImageView's image

Rather than creating two UIImageViews, it seems logical to simply change the image of one view. If I do that, …

ios objective-c swift cocoa-touch uiimageview
Swift to Objective-C header not created in Xcode 6

I have recently been working to add Swift to an existing project, to get to try it out in a …

objective-c xcode swift
IOS: create a UIImage or UIImageView with rounded corners

Is it possible create an UIImage or an UIImageView with rounded corners? Because I want take an UIImage and show …

objective-c ios uiimage rounded-corners