iphone Programming Glossary: cleanup
iPhone - dealloc - Release vs. nil http://stackoverflow.com/questions/1458178/iphone-dealloc-release-vs-nil  whatever the property is currently retaining. Do this if you have a custom setter for the property that is supposed to cleanup more than just the instance variable backing the property. Will overwrite the pointer baz referencing the object with nil.. 
 Comparing two NSDates and ignoring the time component http://stackoverflow.com/questions/1854890/comparing-two-nsdates-and-ignoring-the-time-component 
 Why am I crashing after MKMapView is freed if I'm no longer using it? http://stackoverflow.com/questions/2188098/why-am-i-crashing-after-mkmapview-is-freed-if-im-no-longer-using-it  is that it's still sending messages to your delegate. The workaround is simple As part of your view controller's cleanup set the map view's delegate to nil which will prevent MKMapView from sending messages to it. This is documented in MKMapViewDelegate.. 
 applicationWillEnterForeground vs. applicationDidBecomeActive, applicationWillResignActive vs. applicationDidEnterBackground http://stackoverflow.com/questions/3712979/applicationwillenterforeground-vs-applicationdidbecomeactive-applicationwillre  Which is the proper delegate to implement for when an application is going to sleep and you want to prep it to cleanup and save data applicationWillResignActive vs. applicationDidEnterBackground What's the difference Also I've noticed that.. I don't want my app to take any action in these cases. I just want it to keep running without any intermediate cleanup since the user didn't exit the app. So I would think it makes more sense to do cleanup work just in applicationDidEnterBackground... without any intermediate cleanup since the user didn't exit the app. So I would think it makes more sense to do cleanup work just in applicationDidEnterBackground. I would appreciate your input on best practices to follow on choosing which.. 
 Downloading a Large File - iPhone SDK http://stackoverflow.com/questions/4002979/downloading-a-large-file-iphone-sdk  data self.response nil self.urlconnection scheduleInRunLoop NSRunLoop currentRunLoop forMode NSRunLoopCommonModes void cleanup self.data nil self.response nil self.urlconnection nil self.urlString nil self.isDownloading NO void connection NSURLConnection.. stringWithFormat @ Invalid URL @ self.urlString DELEGATE_CALLBACK dataDownloadFailed reason connection cancel self cleanup return if aResponse suggestedFilename DELEGATE_CALLBACK didReceiveFilename aResponse suggestedFilename void connection NSURLConnection.. theData self.urlconnection unscheduleFromRunLoop NSRunLoop currentRunLoop forMode NSRunLoopCommonModes self cleanup void connection NSURLConnection connection didFailWithError NSError error self.isDownloading NO NSLog @ Error Failed connection.. 
 Problem setting exif data for an image http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image 
 Can you use cancel/isCancelled with GCD/dispatch_async? http://stackoverflow.com/questions/5449469/can-you-use-cancel-iscancelled-with-gcd-dispatch-async  returning. If you've alloc ed or retain ed any objects you may need to release them before returning. Since all that cleanup needs to happen at every check you may want to consider moving toward a single return point. One way to do this would be.. block. This would let you quickly fall through to the end of the method once cancellation was requested and keep your cleanup in a single location. Another option though some may dislike it would be to make the macro use call goto cleanup and define.. your cleanup in a single location. Another option though some may dislike it would be to make the macro use call goto cleanup and define a cleanup label near the end of the method where you release anything that needs to be released. Some people.. 
 How to highlight a UIButton subclass? http://stackoverflow.com/questions/10084606/how-to-highlight-a-uibutton-subclass  context UIColor blackColor setStroke roundedRectanglePath.lineWidth 1 roundedRectanglePath stroke Cleanup CGGradientRelease redGradient CGColorSpaceRelease colorSpace   iphone objective c cocoa touch   share improve this question.. 
 How to properly release an AVCaptureSession http://stackoverflow.com/questions/3741121/how-to-properly-release-an-avcapturesession  session retain previewLayer.frame view.bounds view.layer addSublayer previewLayer session startRunning Cleanup previewLayer removeFromSuperlayer previewLayer release session stopRunning session release  iphone multithreading ios camera.. 
 iOS SDK - Programmatically generate a PDF file http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file  the CGRect we provide and the above defined dictionary pdfContext CGPDFContextCreateWithURL url pageRect myDictionary Cleanup our mess CFRelease myDictionary CFRelease url Done creating our PDF Context now it's time to draw to it Starts our first.. 
 Gradient effect for Line Graph in iPhone http://stackoverflow.com/questions/4835515/gradient-effect-for-line-graph-in-iphone  0.0 CGContextDrawLinearGradient UIGraphicsGetCurrentContext gradient gradStartPoint gradEndPoint 0 CFRelease gradient Cleanup CGColorSpaceRelease colorSpace CGContextRestoreGState UIGraphicsGetCurrentContext graphView.image UIGraphicsGetImageFromCurrentImageContext.. 
 PDF Generation From UIScrollView + iphone http://stackoverflow.com/questions/5268943/pdf-generation-from-uiscrollview-iphone  the CGRect we provide and the above defined dictionary pdfContext CGPDFContextCreateWithURL url pageRect myDictionary Cleanup our mess CFRelease myDictionary CFRelease url Starts our first page CGContextBeginPage pdfContext pageRect Draws a black.. 
 Convert html file to PDF Document in iOS using Cocoa-Touch http://stackoverflow.com/questions/6316192/convert-html-file-to-pdf-document-in-ios-using-cocoa-touch  the CGRect we provide and the above defined dictionary pdfContext CGPDFContextCreateWithURL url pageRect myDictionary Cleanup our mess CFRelease myDictionary CFRelease url Done creating our PDF Context now it's time to draw to it Starts our first.. 
 Touchesbegan not detecting what is being touched http://stackoverflow.com/questions/7808000/touchesbegan-not-detecting-what-is-being-touched 
 
 
     
      |