runway20 / PopoverView

A simple UIView popover control for iPhone/iPad written in CoreGraphics.
1.02k stars 213 forks source link

Fix analyser warnings #19

Closed palringosteve closed 11 years ago

palringosteve commented 11 years ago

The makeTempViewsWithStrings:andImages: method does not conform to naming conventions (methods that return a retained object should start with init, new, copy etc). This causes the Analyser to identify a memory leak when returning tempViewArray.

For reference: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html%23//apple_ref/doc/uid/TP40011210-CH10-SW9

http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/MemoryMgmt/Articles/mmRules.html%23//apple_ref/doc/uid/20000994-SW1