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 swap two numbers without using temp variables or arithmetic operations?

This equation swaps two numbers without a temporary variable, but uses arithmetic operations: a = (a+b) - (b=a); How …

c++ objective-c c swap
iOS 7 Status Bar Collides With NavigationBar

I have a view controller in my app that has a navigation bar dragged on it in the storyboard. It …

ios objective-c uinavigationcontroller uinavigationbar ios7
How to set a conditional breakpoint in Xcode based on an object string property?

I'm looking to be able to have the debugger break when it reaches a particular string match. As an example, …

objective-c xcode debugging breakpoints
How to change background color of UISearchBar in iOS7

How to change background color of UISearchBar in iOS7? not gray, I want to change color like my uinavigationbar if …

objective-c ios7 uisearchbar background-color uisearchdisplaycontroller
Retain cycle on `self` with blocks

I'm afraid this question is pretty basic, but I think it's relevant to a lot of Objective-C programmers who are …

objective-c memory-management objective-c-blocks
ScrollView gesture recognizer eating all touch events

I have a UIScrollView to which I added a single tap gesture recognizer to show/hide some UI overlay using: …

ios objective-c uiscrollview uitapgesturerecognizer
Getting thread id of current method call

Is there a way to print out the current thread id on which the current method is executing on? (objective-c …

iphone objective-c cocoa multithreading
How do I make AND or OR expressions?

I wrote this: if( a == -11 && b == -1 ){ { if( a == -1) AND ( b == -1)... But neither work, and …

objective-c boolean-expression
Rename or refactor files in Xcode

Is it possible to rename/refactor a class file and have it rename the actual file on disk? If so, …

iphone objective-c xcode refactoring renaming
How does "bump" technology work?

Any good documentation or articles out there about doing device-to-device data transfer?

iphone objective-c bump