When a function returns a result that you don’t need you can cast it to void to eliminate the compiler warning:
(void) [[NSURLConnection alloc] initWithRequest:request delegate:self];
I haven’t used ARC yet so I can’t say if this is a good idea, before ARC you would need to keep this pointer result somewhere so you could release it.
Related Contents:
- Detecting when the ‘back’ button is pressed on a navbar
- iPhone Simulator location
- Where are ${EXECUTABLE_NAME} and ${PRODUCT_NAME} defined
- Xcode Debugger: view value of variable
- Could not find a storyboard named ‘Main’ in bundle
- How to get UITableView from UITableViewCell?
- What does the Xcode 4.2 preference “Support Wirelessly Connected Devices” do?
- Is there any limit in storing values in NSUserDefaults?
- How to remove the last border of the last cell in UITableView?
- How to get UITableViewCell indexPath from the Cell?
- Xcode 4 + iOS 4.3: “No Packager exists for the type of archive”
- Center text vertically in a UITextView
- How to reach the current selected cell in didSelectRowAtIndexPath?
- What are the advantages of armv7 over armv6 when compiling iPhone apps?
- How to set font size to fill UILabel height?
- How can I detect the dismissal of a modal view controller in the parent view controller? [duplicate]
- List saved files in iOS documents directory in a UITableView?
- this class is not key value coding-compliant for the key view [duplicate]
- UIWebView didFinishLoading fires multiple times
- UITableView Scroll event
- Find/Replace in Xcode using Regular Expression
- Apple Mach-O Linker Warning Directory not found
- How can I use NSError in my iPhone App?
- Cannot generate iOS App archive in xcode
- What does the -ObjC linker flag do?
- How can I save an image to the camera roll?
- Dismissing a Presented View Controller
- Declaration/definition of variables locations in ObjectiveC?
- CALayers didn’t get resized on its UIView’s bounds change. Why?
- Can I access the App Store from within the iOS Simulator?
- iPhone/iOS JSON parsing tutorial [closed]
- Correct way to load a Nib for a UIView subclass
- “Plain Style unsupported in a Navigation Item” warning with my customized Bar Button Item
- How to validate an url on the iPhone
- What is the best way to remove all subviews from you self.view?
- UIBarButtonItem: target-action not working?
- Objective-C setting NSDate to current UTC
- Operation Queue vs Dispatch Queue for iOS Application
- What is the strong property attribute
- How to override @synthesized getters?
- UIPageViewController, how do I correctly jump to a specific page without messing up the order specified by the data source?
- Get current dispatch queue?
- How do I profile my app – the menu item is disabled?
- iPhone how to get UITextField’s text while typing?
- How to distribute ios application wirelessly without managing UDIDs and recompilation
- Lazy load images in UITableView
- How to automatically size UIScrollView to fit the content
- How to dismiss number pad keyboard by tapping anywhere
- How to get Duration from AVPlayer (Not AVAudioPlayer)?
- Add an object to the beginning of an NSMutableArray?