Wednesday, May 29, 2013
Thursday, April 18, 2013
Implement Auto Suggestions in iOS/iPhone/iPad
A tutorial to implement auto suggestion while typing in iPhone. Below is the link to download a source code. Let me know for any query.
Download Source Code : AutoSuggestion_iOS
A tutorial to implement auto suggestion while typing in iPhone. Below is the link to download a source code. Let me know for any query.
Download Source Code : AutoSuggestion_iOS
Monday, March 4, 2013
Conquer/Control over the greatest enemy of iOS developer- app crash on iPhone
Thousands discover and download the iPhone application; very few know how to develop these logical software programs. While trying to develop a mobile engagement platform, for the iPhone; the application crashed several times not just on the device but also on the simulator. If reports of each crash were to be reported, around 3 pages of crash logs could be traced within a week’s effort. An application crash is the most common issue for any developer; however every developer needs to sail through it to gain control over the software development process. This article will provide a checklist and some suggestions that could help you survive any iPhone crash! How did one find that the application has stopped working? Mostly, it is the tester or the user who complains about the app not running in their iPhone X version. Here’s what a developer must do to initiate instant recovery. A complete checklist that helps every iPhone developer to recover from an application crash has been listed below:
- Reactions that cause an application to crash- trace back program
files and logs.
- Unlike other smartphones, iPhone needs the application binary
and source code execution list to trace the program logs.
- Keep a record of every crash filed appropriately for future
reference.
- Refer search engines for past experiences of similar crashes
Most of the time the
application is inoperable due to some actions performed within the codes
written for the iPhone. Though client side crashes are also not so rare. Every
time the iPhone is deployed on the client platform, it runs into numerous
issues. However; same application might work perfectly on iOS simulator/testing
device. One could find many blogs/sites who elaborate the problems and
solutions. Nevertheless, when it occurs at a remotely distant user ased
location, the pros and cons are indeed a heavy expenditure. It affects product
sales and thereby creates more headaches for developers. There is no perfect
solution yet, certain methods enumerated below could help one avoid these types
of problems using try-catch block.
This is common practice
among other platform developers to use try catch block while programming but for
the ios developer there is nowhere written example found on world wide web or
if found then the(they) do not suggest to use this, I don’t know why!!!!!
I am using try catch blocks while programming and it is working great, if application somewhere going to crash then catch block will be called and no affect in User interface and the developer can generate/throw message to user there is some error and try again later. So iOS developers now can smile to know that there app will not crash anymore <but> they want that errors should be solved with another version release. To track those errors, we have lots of option:
- when compiler goes to catch block, you can
hit API or URL and can send error description and method name/class name
to log on server or you can use PL crash reporter.
Integrate crash reporter in one single line
Tutorial: http://www.youtube.com/watch?v=vf-u9U61WkI
- You can open mail composer on iOS app when
error occurs and user will press send mail to you.
Many….many….many
alternatives. Sky is the limit
Wednesday, December 12, 2012
Self-care is the secret to performing at the highest level.
Here are the six simple rituals he uses to perform at his highest, which you too can begin implementing right away:
1. Drink a glass of water when you wake up. Your body loses water while you sleep, so you’re naturally dehydrated in the morning. A glass of water when you wake helps start your day fresh. When do you drink your first glass of water each day?
2. Define your top 3. Every morning Mike asks himself, “What are the top three most important tasks that I will complete today?” He prioritizes his day accordingly and doesn’t sleep until the Top 3 are complete. What’s your "Top 3" today?
3. The 50/10 Rule. Solo-task and do more faster by working in 50/10 increments. Use a timer to work for 50 minutes on only one important task with 10 minute breaks in between. Mike spends his 10 minutes getting away from his desk, going outside, calling friends, meditating, or grabbing a glass of water. What’s your most important task for the next 50 minutes?
4. Move and sweat daily. Regular movement keeps us healthy and alert. It boosts energy and mood, and relieves stress. Most mornings you’ll find Mike in a CrossFit or a yoga class. How will you sweat today?
5. Express gratitude. Gratitude fosters happiness, which is why Mike keeps a gratitude journal. Every morning, he writes out at least five things he’s thankful for. In times of stress, he’ll pause and reflect on 10 things he’s grateful for. What are you grateful for today?
6. Reflect daily. Bring closure to your day through 10 minutes of reflection. Mike asks himself, “What went well?” and “What needs improvement?” So... what went well today? How can you do more of it?
Courtesy: Fast Company (Click here for complete article)
Monday, December 10, 2012
Much more work will get done in much less time!!
A must read EXCERPT from "The 7 Habits of Highly effective people":
My seven-year-old son, Stephen,
volunteered to take care of the yard. Before I actually gave him a job, I began
a thorough training process. I wanted him to have a clear picture in his mind
of what a well-cared-for yard was like, so I took him next door to our neighbor's.
"Look, son," I said. "See
how our neighbor's yard is green and clean? That's what we're after: green and
clean. Now come look at our yard. See the mixed colors? That's not it; that's
not green. Green and clean is what we want. Now how you get it green is up to
you. You're free to do it any way you want, except paint it. But I'll tell you
how I'd do it if it were up to me."
"How would you do it, Dad?"
"I'd turn on the sprinklers. But you
may want to use buckets or a hose. It makes no difference to me. All we care
about is that the color is green. Okay?"
"Okay ."
"Now let's talk about 'clean,' Son.
Clean means no messes around -- no paper, strings, bones, sticks, or anything
that messes up the place. I'll tell you what let's do. Let's just clean up half
of the yard right now and look at the difference."
So we got out two paper sacks and picked
up one side of the yard. "Now look at this side. Look at the other side.
See the difference? That's called clean."
"Wait!" he called. "I see
some paper behind that bush!"
"Oh, good! I didn't notice that
newspaper back there. You have good eyes, Son."
"Now before you
decide whether or not you're going to take the job, let me tell you a few more
things. Because when you take the job, I
don't do it anymore. It's your job. It's called a stewardship. Stewardship
means 'a job with a trust.' I trust you to do the job, to get it done. Now
who's going to be your boss?"
"You, Dad?"
"No, not me. You're the boss. You
boss yourself. How do you like Mom and Dad nagging you all the time?"
"I don't."
"We don't like doing it either. It
sometimes causes a bad feeling doesn't it? So you boss yourself. Now, guess who
your helper is."
"Who?"
"I am," I said.
"You boss me."
"I do?"
"That's right. But my time to
help is limited. Sometimes I'm away. But when I'm here, you tell me
how I can help. I'll do anything you want me to do." "Okay!"
"Now guess who judges you."
"Who?"
"You judge
yourself."
"I do?"
"That's right. Twice a week the two of
us will walk around the yard and you can show me how it's coming.
How are you going to judge?"
"Green and clean."
"Right!"
I
trained him with those two words for two weeks before I felt he was ready to
take the job.
Finally, "That's the
big day came.
"Is it a deal, Son?"
"It's a deal."
"What's
the job?"
"Green and clean."
"What's green?"
He looked
at our yard, which was beginning to look better.
the color of his yard." "What's
clean?" "No messes." "Who's the boss?" "I
am."
Then he pointed next door.
"Who's your helper?"
"You
are, when you have time."
"Who's the judge?"
"I am. We'll
walk around two times a week and I can show you how it's coming."
"And
what will we look for?"
"Green and clean."
At that time I didn't
mention an allowance. But I wouldn't hesitate to attach an allowance to such a stewardship.
Two
weeks and two words. I thought he was ready.
It was Saturday. And he did
nothing. Sunday...nothing. Monday...nothing. As I pulled out of the
driveway on my way to work on Tuesday, I looked at the yellow, cluttered yard
and the hot July sun on its way up. "Surely he'll do it today," I
thought. I could rationalize Saturday because that was the day we made the
agreement. I could rationalize Sunday; Sunday was for other things. But I couldn't
rationalize Monday. And now it was Tuesday. Certainly he'd do it today. It was
summertime. What else did he have to do?
All day I could hardly wait to return home
to see what happened. As I rounded the corner, I was met with the same picture
I left that morning. And there was my son at the park across the street
playing.
This was not acceptable. I was upset and
disillusioned by his performance after two weeks of training and all those
commitments. We had a lot of effort, pride, and money invested in the yard and
I could see it going down the drain. Besides, my neighbor's yard was manicured
and beautiful, and the situation was beginning to get embarrassing.
I was ready to go back to gofer
delegation. Son, you get over here and pick up this garbage right now or else!
I knew I could get the golden egg that way. But what about the goose? What
would happen to his internal commitment?
So I faked a smile and yelled across the
street, "Hi, Son. How's it going?"
"Fine!" he returned.
"How's
the yard coming?" I knew the minute I said it I had broken our agreement.
That's not the
way we had set up an accounting. That's not what we had agreed.
"How's
the yard coming?" I knew the minute I said it I had broken our agreement.
That's not the
way we had set up an accounting. That's not what we had agreed.
So
he felt justified in breaking it, too. "Fine, Dad."
I bit my tongue
and waited until after dinner. Then I said, "Son, let's do as we agreed.
Let's walk around
the yard together and you can show me how it's going in your stewardship."
As
we started out the door, his chin began to quiver. Tears welled up in his eyes
and, by the time we got out to the middle of the yard, he
was whimpering.
"It's so hard, Dad!"
What's so hard? I thought to
myself. You haven't done a single thing! But I knew what was hard
-- self management, self-supervision. So I said, "Is there anything I can
do to help?" "Would you, Dad?" he sniffed
"What was our
agreement?"
"You said you'd help me if you had time."
"I have time."
So he ran into the house and came back
with two sacks. He handed me one. "Will you pick that stuff up?" He
pointed to the garbage from Saturday night's barbecue. "It makes me
sick!"
So I did. I did exactly what he asked me
to do. And that was when he signed the agreement in his heart. It became his
yard, his stewardship.
He only asked for help two or three more
times that entire summer. He took care of that yard. He kept it greener and
cleaner than it had ever been under my stewardship. He even reprimanded his
brothers and sisters if they left so much as a gum wrapper on the lawn.
Trust is the highest form of human
motivation. It brings out the very best in people. But it takes time and
patience, and it doesn't preclude the necessity to train and develop people so
that their competency can rise to the level of that trust.
I am convinced that if stewardship
delegation is done correctly, both parties will benefit and ultimately much
more work will get done in much less time.
Wednesday, December 5, 2012
iPhone Development Tutorial
How to create APN certificate and register app to receive Apple Push Notification?
Complete steps or procedure to create certificates, app id, provisioning profile, keychain.
How to enable/disable ARC (Automatic reference count)?
Subscribe to:
Posts (Atom)