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.

How to remove empty cells in UITableView?

i am trying to display a simple UITableView with some data. I wish to set the static height of the …

ios objective-c uitableview
Making an array of integers in iOS

If you want to make an array of integers, can you use NSInteger? Do you have to use NSNumber? If …

ios objective-c
Add button to navigationbar programmatically

Hi I need to set the button on right side, in navigation bar, programatically , so that if I press the …

objective-c iphone uinavigationbar uibarbuttonitem
iOS: Convert UTC NSDate to local Timezone

How do I convert a UTC NSDate to local timezone NSDate in Objective C or/and Swift?

ios objective-c swift timezone nsdate
How do I set bold and italic on UILabel of iPhone/iPad?

How do I set bold and italic on UILabel of iPhone/iPad? I searched the forum but nothing helped me. …

ios objective-c swift uilabel uifont
Best way to remove from NSMutableArray while iterating?

In Cocoa, if I want to loop through an NSMutableArray and remove multiple objects that fit a certain criteria, what's …

objective-c cocoa
Detect current device with UI_USER_INTERFACE_IDIOM() in Swift

What is the equivalent of UI_USER_INTERFACE_IDIOM() in Swift to detect between iPhone and iPad? I get an …

ios iphone objective-c ipad swift
How to disable back swipe gesture in UINavigationController on iOS 7

In iOS 7 Apple added a new default navigation behavior. You can swipe from the left edge of the screen to …

ios objective-c uinavigationcontroller uigesturerecognizer ios7
@try - catch block in Objective-C

Why doesn't @try block work? It crashed the app, but it was supposed to be caught by the @try block. …

iphone objective-c try-catch-finally nsexception
How to force view controller orientation in iOS 8?

Before iOS 8, we used below code in conjunction with supportedInterfaceOrientations and shouldAutoRotate delegate methods to force app orientation to any …

ios objective-c ios8 uinavigationcontroller autorotate