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.

What exactly does @synthesize do?

I have seen the following piece of code: //example.h MKMapView * mapView1; @property (nonatomic, retain) MKMapView * mapView; //example.m @synthesize …

iphone objective-c
Semantic Issue: Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects

I'm currently using the iOS 5 SDK trying to develop my app. I'm trying to make an NSString a property, and …

objective-c variables ios5 properties automatic-ref-counting
How can I click a button behind a transparent UIView?

Let's say we have a view controller with one sub view. the subview takes up the center of the screen …

ios objective-c iphone cocoa-touch ipad
Calling a method on the main thread?

First of all I am writing code for iphone. I need to be able to call a method on the …

ios objective-c iphone multithreading methods
Hide Status Bar In iOS 8 app

I have tried [[UIApplication sharedApplication] setStatusBarHidden:YES]; This does nothing. And I have looked in my Info.plist file for "…

objective-c ios8 statusbar
Can you attach a UIGestureRecognizer to multiple views?

UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTapTap:)]; [self.view1 addGestureRecognizer:tapGesture]; [self.view2 addGestureRecognizer:tapGesture]; [tapGesture release]; In …

ios objective-c uigesturerecognizer
Positioning MKMapView to show multiple annotations at once

I've got several annotations I want to add to my MKMapView (it could 0-n items, where n is generally around 5). …

ios objective-c iphone cocoa-touch mapkit
UIImageView missing images in Launch Screen on device

I have an app that supports iOS8 and later, built in Xcode 7 and I am using a XIB for a …

ios objective-c uiimageview uiimage launch-screen
Pull to refresh UITableView without UITableViewController

I'm trying to implement a pull to refresh feature in a UITableView within a UIViewController. I can't use a UITableViewController …

ios objective-c iphone uitableview pull-to-refresh
How to convert std::string to NSString?

Hi I am trying to convert a standard std::string into an NSString but I'm not having much luck. I …

objective-c nsstring objective-c++ stdstring