iPhone Open Application Development
iPhone Open Application Development Write Native Objective-C Applications for the iPhone

By Jonathan A. Zdziarski
Book Price: $39.99 USD
£24.99 GBP
PDF Price: $27.99

Cover | Table of Contents | Forum | Colophon


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Application Freezes On Iphone
lordhong
post Apr 22 2008, 02:54 AM
Post #1


New Member
*

Group: Members
Posts: 8
Joined: 22-April 08
Member No.: 242



rolleyes.gif hi, i got the example compiled in xcode, and scp-ed to my iphone...
killall SpringBoard, and the default icon shows up.

when i clicked (or touched) it, the icon enlarges to fullscreen, and the whole program freezes.

home button does not work, a hard re-boot is required at this point.

i'm trying out the example from chapter 3, the basic hello world UITextView.

my iphone is 1.1.4

couldn't figure out why, please help

thanks. blink.gif
Go to the top of the page
 
+Quote Post
lordhong
post Apr 22 2008, 03:21 PM
Post #2


New Member
*

Group: Members
Posts: 8
Joined: 22-April 08
Member No.: 242



huh.gif the only difference is i created the application using the iPhone UI Kit Template supplied by the book source. It has a main.m file, so the main() is called from there, instead of in the example, the main() is defined and called with MyExample.m

I removed the main.m and put the main() into MyExample.m, but still, the application freezes after I touched the icon on my iphone. And home button does not work anymore. A hard reboot fixes this.

Any suggestion? blink.gif
Go to the top of the page
 
+Quote Post
lordhong
post Apr 23 2008, 05:16 PM
Post #3


New Member
*

Group: Members
Posts: 8
Joined: 22-April 08
Member No.: 242



i re-copied the files from book sample download, and it works fine now.

no idea what have happened but it works now.

the book is AWESOME!!!

This post has been edited by lordhong: Apr 23 2008, 05:17 PM
Go to the top of the page
 
+Quote Post
stu_
post Apr 28 2008, 02:40 PM
Post #4


New Member
*

Group: Members
Posts: 6
Joined: 22-April 08
Member No.: 246



QUOTE (lordhong @ Apr 23 2008, 06:16 PM) *
i re-copied the files from book sample download, and it works fine now.

no idea what have happened but it works now.

the book is AWESOME!!!


The only reason I can see that a basic application that built ok would freeze is that your Info.plist was wrong, maybe taken from the Xcode SDK rather than copied from the book...?

This post has been edited by stu_: Apr 28 2008, 02:40 PM
Go to the top of the page
 
+Quote Post
jzdziarski
post Apr 28 2008, 06:15 PM
Post #5


Active Member
**

Group: Members
Posts: 24
Joined: 1-April 08
Member No.: 187



Sometimes the iPhone's own applications freeze up - it may not have been anything he did, just a buggy OS.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 16th May 2008 - 12:44 PM