Home
EventKit Tutorial PDF Print E-mail
Programming
Written by Nate Lyman   
Tuesday, 17 August 2010 05:09

A new API published in iOS4 is EventKit.  It allows your application to interact with your user's calendar.  In this tutorial I will show you how to add an event to your user's calendar.

For this example lets say you have an app that lets users see information about their favorite baseball team.  Part of the functionality could be viewing that team's schedule.  As an added feature you want to let your user add games to their phone's calendar.

The first thing you need to do is add the following existing frameworks to your project:

EventKit.framework
EventKitUI.framework

Below is a code snippet of how you'd present a view with event details, and give the user the ability to add it to their calendar.

Show/Hidden php code

You'll also need to make the class you're adding EventKit to a EKEventEditViewDelegate and add the following methods:

Show/Hidden php code

 

I know this isn't super in depth, but if you have any experience working with the iPhone SDK, this should get you pointed in the right direction and get you up and running quickly.

Last Updated on Tuesday, 17 August 2010 05:41
 
eBay Mobile on Fox Business PDF Print E-mail
Technology
Written by Nate Lyman   
Friday, 13 August 2010 05:15

 
iOS 4.1 Beta 3 released PDF Print E-mail
Technology
Written by Nate Lyman   
Wednesday, 04 August 2010 03:26

Today, Apple released iOS 4.1 Beta 3.  I have installed it on my 3GS and havent found any noticeable changes from the second beta.  It is slightly quicker when switching between apps and using spotlight search.  Others have observed that GameCenter isn't available on the iPhone 3G with this release.

There are improvements in the iOS API's including GameKit, AVFoundation and MapKit. There is also access to contact thumbnails through public API's.

As I discover more, I'll update this post.

 
Logical vs Comparison Operators in PHP PDF Print E-mail
Programming
Written by Nate Lyman   
Friday, 30 July 2010 04:35

Sometimes, you need to validate a variable passed into a function and set a default value if the user accidentally passes in a NULL.  There are a few ways to do it, a lot of developers would just use an if statement.  But not you, because it takes up extra space.  So basically there are two other easy ways to do it.

You can use a ternary operator, as highlighted in the ternary function.  Which cleans up your code a bit.

Another way is to use the logical operator "or".  In the logical function below, if the user enters in a value such as NULL or FALSE, it will use the default value of 10. Another benefit is, a lot of PHP programmers aren't aware of it.  It gives them a chance to learn something new!

Show/Hidden php code

Last Updated on Friday, 30 July 2010 04:45
 
Moving on PDF Print E-mail
Announcements
Written by Nate Lyman   
Monday, 19 July 2010 09:05

RedLaserSo, last week an opportunity presented itself, and I decided to jump on it.  In late June, eBay bought RedLaser, the best barcode scanning app around.  In building the team for RedLaser at eBay, I found out there was mutual interest.  I can't wait to dig in and really give myself a challenge.  I've been doing PHP a long time, and things just became too easy.

I like learning, a lot.  There is no way to learn like being thrown into the fire and getting your hands dirty.  Now, I've done plenty of iPhone App development, but nothing to this complexity, or with as much reach. I can't wait to learn and rock it out.

Was I looking for a change, not exactly.  It just seemed like the right time.  I've been doing my current job for a little over 2 years, and I've learned a ridiculous amount of things.  Ranging from scaling PHP, How to handle a lot of data in SQL Server, leading, and getting visibility in a large company.

I absolutely love the people I work with, and work for, which made the decision hard.   The driver of change was challenge.  I can code PHP in my sleep, and we've built such great tools, and have our best practices so developed, that we can just build things fast.

When you make big decisions like this, you never know how they're going to work out.  You leave something comfortable for something new and exciting.  I think great things are on the horizon.  The team I am joining has the 2 guys I built DealFinder with.  I know I have a great relationship with them, so there is some comfort in the excitement.

Finally, does this mean I am giving up PHP, absolutely not.  Maybe I'll port PHP to the iPhone SDK.  (Kidding)

Last Updated on Monday, 19 July 2010 09:23
 
« StartPrev12345678910NextEnd »

Page 1 of 11

@natelyman

natelyman: For great advice follow @patpadrigal
natelyman: RT @patpadrigal: Never mistake activity for achievement. John Wooden
natelyman: You know... I'm not happy with the programming on Fox News... I think I'll pay them a visit.