Showing posts with label sdk. Show all posts
Showing posts with label sdk. Show all posts

Tuesday, March 16, 2010

iPhone SDK - Easily check for an internet connection

So, I have found that the simplest way to check for an internet connection in the iPhone SDK is not via the "Reachability" classes that are provided through the Apple iPhone example projects.

The easiest is as demonstrated through my video tutorial:



Simply put, you can create an NSString from a URL (in this case it is http://google.com), and check to see if that string then exists or not.

Thanks for visiting my blog!

Sunday, March 14, 2010

iTunes Connect Code Signing Solution

Drum line please...

I finally figured out the solution for uploading my first iPhone App (VATviewer) to iTunes Connect without getting any Code signing error.

After successfully adding your iPhone Distribution profile and provisioning profile to your project, make sure to add the string "--keychain login.keychain" to "Other Code Signing Flags" (access this by going to Project->Edit Project Settings->Build and ensuring that your Distribution profile is selected).

That was my final solution, but I cannot guarantee that it will be the solution to your iPhone SDK uploading problems.

Good Luck!

Connor

iPhone SDK Distribution Pains

So here I am, finalizing an application that I have been working on for a few weeks. It has been a long process learning Objective-C and the iPhone SDK, but I finally have the application ready for upload to iTunes Connect (the AppStore). But, little did I know that Apple's code-signing certificates, provisions, etc.  are even more of a pain than the coding and development process.

I have added and re-added provisioning profiles to both my device and XCode, added certificates to KeyChain, etc., and I have built my application and Zipped it. I have tried multiple times to upload the application binary using Apple's website and the Application Loader, but each time I receive a message telling me that the binary was not code signed properly.

I have tried everything based off of google searches, but with no success. The final thing that I am going to try is to install the newest version of XCode and the iPhone SDK v3.2 Beta, and see if anything is fixed.

Does anybody have any other suggestions?

Android SDK anyone?

Sunday, January 10, 2010

Check Internet Connection in iPhone

Here is a quick code snippet for you. In a Dashcode javascript application, you can check if the user is connected to the internet via the following code:


  var online = window.navigator.onLine;
  if (!online){
    alert('You are not currently connected to the internet. Please try again later.');
  }

The Latest Dashcode Problem

I think that it sounds silly, but, now that I have figured out all the other problems in my GUI interface, I now am unable to add more than 2 views to my stack within the "browser" component. I can add new view stacks, but the problem is that they appear outside of my original browser component, requiring that I re-create that. Then, there is the problem of me not being able to edit the canvas for that new view stack (or group).

If there are any Dashcode developers out there that can help me out, please comment.

Thanks for visiting my new Blog!

Found Solution to Row Selection Problem in Dashcode

So after a while of playing around, I found that my problems earlier were due simply because I was trying to get data from the wrong datasource.

A quick and simple tip for everybody so that you do not have to go through what I did:
Make sure that you are trying get your selected data from your list datasource, not the original datasource for the list (if that makes sense).

Here is some code:

function myRowClickHandler(event){
  // make sure to grab the datasource specifically for your list
  var myDataSource = dashcode.getDataSource('myList');
  // Simply alert out the selected row data
  alert(myDataSource.selection().valueForKey('person_name'));
}

Saturday, January 9, 2010

iPhone Application Development Update

First off, I would like to welcome everybody to my new blog page. Here I will be posting my computer programming and web development experiences. Shall we get started?

The past 2 weeks I have been diving in to the iPhone SDK and the limited options for programming native applications on the iPhone platform. I started off thinking that it was absolutely required to know Objective-C for programming in Apple's Cocoa and Cocoa Touch frameworks, so I tried to learn Obj-C. Within a day or so, I gave up on that seemingly complex, obscure, ugly language and set out to find a different approach. I soon found PhoneGap; a framework that allows native iPhone apps to be developed in html, css, and, of course, javascript. I programmed in plain javascript (with jQuery) and html for a few days, but once again found there to be some problems. I found DashCode (that came with the Apple SDK), in which I can develop native-looking Mobile Safari applications in javascript. Combining the powers of PhoneGap framework and DashCode, I am now able to use a nice drag-and-drop IDE to build javascript-run, native-looking iPhone applications.

I will release some tutorials on my YouTube channel later on using these tools together, and write another blog post about my upcoming applications.