Wednesday, 27 November 2013


Inspiring Steve Job quotes that will make you want to change "The World"



 



Let’s go invent tomorrow instead of worrying about what happened yesterday.



 



 



 



Creativity is just connecting things. When you ask creative people how they did something, they feel a little guilty because they didn’t really do it, they just saw something. It seemed obvious to them after a while. 



 



 



 



If you really look closely, most overnight successes took a long time. 



 



 



But innovation comes from people meeting up in the hallways or calling each other at 10:30 at night with a new idea, or because they realized something that shoots holes in how we’ve been thinking about a problem. 



 



 



We’re here to put a dent in the universe. Otherwise why else even be here? 



 



 Deciding what not to do is as important as deciding what to do.



 



 



I’m convinced that about half of what separates the successful entrepreneurs from the non-successful ones is pure perseverance.



 



 



Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma — which is living with the results of other people’s thinking. Don’t let the noise of others’ opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary. 



 



 Sometimes life is going to hit you in the head with a brick. Don’t lose faith.



 



The heaviness of being successful was replaced by the lightness of being a beginner again — less sure about everything. It freed me to enter one of the most creative periods of my life.



 



 You’ve baked a really lovely cake, but then you’ve used dog shit for frosting.



 



 



If you don’t love something, you’re not going to go the extra mile, work the extra weekend, challenge the status quo as much.



 



 



Details matter, it’s worth waiting to get it right. 



 



 



That’s been one of my mantras — focus and simplicity. Simple can be harder than complex. You have to work hard to get your thinking clean to make it simple. But it’s worth it in the end because once you get there, you can move mountains. 



 



 



 



No one wants to die. Even people who want to go to heaven don’t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life’s change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true. 



 



 

Monday, 25 November 2013






Block??

Blocks are “anonymous functions” and can be defined inline.
Blocks capture read-only copies (unless defined with __block, more on that later) of local variables, similar to “closures” in other languages.

Block variable

• To define a block variable, the ^ operator is used.
• BOOL ( ^isInputEven)(int) = ^(int input) {
if(input % 2 == 0) return YES;
else
return NO;

check image**


• Call to a block is similar to c function call int x = -101;
NSLog(@"%d %@ number", x, isInputEven(x) ? @"is an even" : @"is not an even");
Output is:
-101 is not an even number

Blocks and variable scope

float price = 1.99;
float (^finalPrice)(int) = ^(int quantity) {
// Notice local variable price is accessible in the block
return quantity * price; };
• thecodeinthebodyreferencesthevariable ‘price’ which is defined outside the block.


• The output for the log statement is: Ordering 10 units, final price is: $19.90
• Now change the price and run the program price = .99;
NSLog(@"Ordering %d units, final price is: $%2.2f", orderQuantity, finalPrice(orderQuantity));

• The output for the block, with the price variable updated is:
Ordering 10 units, final price is: $19.90

Using ___block Storage Modifier

• To allow a variable defined outside a block to be mutable, apply the ___block storage type modifier:
___block float price = 1.99;
float (^finalPrice)(int) = ^(int quantity) {
return quantity * price; };
int orderQuantity = 10; price = .99;

• The output for the block, with the price variable updated is:
• With block storage modifier – Ordering 10 units, final price is: $9.90


Passing block as parameter

• Since blocks are “variables” you can pass blocks to methods and functions.
• -(NSArray*)each:(void(^)(id))block;
• - (NSArray *)each:(void (^)(id object))block {
for(id mObject in self) block(mObject); return self;
}




int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSArray *array = [NSArray arrayWithObjects:@"Number one", @"Number two", nil];
[array each:^(id object) { NSLog(object);
}];

More details :Apple Docs

Sunday, 24 November 2013

Hi..

If you need any particular topic tutorial please mention those topics as a comment to this post.
So i can add that one also.

And the next tutorial's am going to submit is


"Earn money from your ios App's" 


Hopefully i will post it today night itself...


There are mainly 2 types
1. Using iOS In App Purchase
2.Using Google AdMobs