Posts

TDD - Test Driven Development

Test Cases Link- http://www.infinite-loop.dk/blog/2011/04/unittesting-asynchronous-network-access/ http://stackoverflow.com/questions/15609219/testing-asynchronous-call-in-unit-test-in-ios http://blog.typpz.com/2014/04/27/xcode-5-test-uitableview-with-xctest-framework/ http://restlessthinker.com/?p=150

Twitter Error Domain=HTTP Code=404 objective c

Error : Request  failed with error: Error Domain=HTTP Code=404 "The operation couldn’t be completed. (HTTP error 404.)" Solution  : Verson1 of the API is  deprecated  now. This document may describe an outdated version of the API. Please move  as soon as possible  to Version1.1(https://dev.twitter.com/docs/api/1.1) Go through this document. https://dev.twitter.com/docs/api/1.1/post/direct_messages/new Point to be noted Api should be in json format. Api version v1.1 receiver and sender should follow each other. Example Request POST  : https://api.twitter.com/1.1/direct_messages/new.json POST Data  : text=hello Rajneesh&screen_name=rajneesh071

Create your own framework in Objective C.

Important link http://blog.db-in.com/universal-framework-for-ios/ http://jaym2503.blogspot.in/2012/09/how-to-create-custom-ios-framework.html

AttributedString - decorated text.

Image
NSMutableAttributedString :  NSAttributedString  and its mutable counterpart  NSMutableAttributedString  are used to draw decorated text.  You can create strings with attributes that describe how the string should look when drawn.  Show OutLine String on button : If you want to show outline text on button then you can use NSMutableAttributedString. NSMutableAttributedString * title =[[ NSMutableAttributedString alloc ] initWithString :@ "Rajneesh071" ]; [ title setAttributes :@{ NSStrokeWidthAttributeName : @ 3 , NSStrokeColorAttributeName : [ UIColor blueColor ] } range : NSMakeRange ( 0 , [ title length ])]; [ yourButton setAttributedTitle : title forState : UIControlStateNormal ]; OutPut : Play with text font :  I f you want to change font name and font size then you can do like this. NSMutableAttributedString *string = [[ NSMutableAttributedString allo...

Linkes releated to rtsp streaming.

http://sonnati.wordpress.com/2011/07/11/ffmpeg-the-swiss-army-knife-of-internet-streaming-part-i/ FFMPEG :  The most notable parts of FFmpeg are libavcodec :  an audio/video codec library used by several other projects. libavformat :  an audio/video container mux and demux library, and ffmpeg  : 'command line program' for transcoding multimedia files.  FFmpeg iss the command line programm that using libavcodec, libavformat and several other openn source programs (notably x264 for H.264 encoding) offers exceptional transcoding capabilities especially forr server side batch transcoding, butt also for live encoding and audio/video filess manipulation (muxing, demuxing, slicing, splitting and so on).

Links Related to Download Manager?

http://stackoverflow.com/questions/13996621/downloading-multiple-files-in-batches-in-ios https://github.com/Infusion-apps/Download-Manager https://github.com/robertmryan/download-manager http://stackoverflow.com/questions/12176206/fully-featured-file-download-manager-for-ios http://stackoverflow.com/questions/5118144/objective-c-download-manager-for-iphone http://labs.grupow.com/blog/2012/07/12/cocoapods-the-objective-c-library-manager-part-1-slash-2

Resize Image without quality loss.

Resize image without loss in quality. - ( UIImage *) resizeImage :( UIImage *) aImage reSize :( CGSize ) newSize ; { UIGraphicsBeginImageContextWithOptions ( newSize , YES , [ UIScreen mainScreen ]. scale ); [ aImage drawInRect : CGRectMake ( 0 , 0 , newSize . width , newSize . height )]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); return newImage ; }