mateagar / Motion-JPEG-Image-View-for-iOS

Generic UIImageView subclass designed to load and play Motion-JPEG streams such as commonly used with IP cameras, etc.
http://thinkflood.com/support/redeye/software/open-source-software/motion-jpeg-image-view-ios/
122 stars 39 forks source link

Add -awakeFromNib override #4

Closed kristopherjohnson closed 11 years ago

kristopherjohnson commented 11 years ago

I added an override of the -awakeFromNib method, so that a MotionJpegImageView will work properly when loaded from a NIB instead of being initialized with -initWithFrame.

Without this override, if the view is loaded from a NIB, the view crashes when data is received, because _endMarkerData is not initialized.