Posts

Showing posts from 2014

What does -ObjC and -all_load mean?

The -ObjC Linker Flag (https://developer.apple.com/library/mac/qa/qa1490/_index.html) Passing the  -ObjC  option to the linker causes it to load  all  members of static libraries that implement any Objective-C class or category. -all_Load Linker Flag (http://stackoverflow.com/questions/2906147/what-does-the-all-load-linker-flag-do) -all_load forces the linker to load all object files from every archive it sees, even those without Objective-C code.

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 alloc ] initWithString : self .

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).