Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
Discuss need help with coding the simplest program! at the iPhone Developer Exchange - Hackint0sh.org; why don't you just package the webclip in cydia and distribute the webclip folder?...
  1. #11
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    why don't you just package the webclip in cydia and distribute the webclip folder?
    Touch Dial is an easy-to-use application for one touch dial / sms icon on the home screen for iPhone.

    This app can read the accelerometer and do phone dial or SMS dial for the same number based on the your setting for Portrait or Landscape Mode of iPhone.



  2. #12
    Moderator Array

    Join Date
    Aug 2007
    Posts
    781
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    51

    Default

    @alexfunari

    I am not sure what you're asking here, do you want someone to just compile the app for you or do you want to compile yourself?

    If you want someone to make this simple app for you, I can do that.
    If you want to do it yourself, the code to open an url on Safari is:
    Code:
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://google.com"]];
    Rafael (element)

  3. #13
    Rookie Array

    Join Date
    Oct 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    wow man thanks!
    I'm using a windows computer so I have just a bare demo program and an iPhone compiler, where should I add this line, what file?

  4. #14
    Moderator Array

    Join Date
    Aug 2007
    Posts
    781
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    51

    Default

    Quote Originally Posted by alexfunari View Post
    wow man thanks!
    I'm using a windows computer so I have just a bare demo program and an iPhone compiler, where should I add this line, what file?
    When you say you have an iPhone compiler, I assume that you have installed GCC in Cydia... Also, install ldid if you haven't yet.

    The source code:
    hxxp://rapidshare.com/files/153774704/Hello1.zip.htm

    That's it, now just compile and try it


    Rafael (element)

  5. #15
    Rookie Array

    Join Date
    Oct 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    EDIT: Come back with this error

    /$ cd /Hello1/
    /Hello1$ make
    /usr/bin/gcc -c -fsigned-char -g -ObjC -fobjc-exceptions -Wall -Wundeclared-selector -Wreturn-type -Wnested-externs -Wredundant-decls -Wbad-function-cast -Wchar-subscripts -Winline -Wswitch -Wshadow -I/var/include -I/var/include/gcc/darwin/4.0 -D_CTYPE_H_ -D_BSD_ARM_SETJMP_H -D_UNISTD_H_ main.m -o main.o
    main.m: In function 'main':
    main.m:6: warning: implicit declaration of function 'UIApplicationMain'
    main.m:6: warning: nested extern declaration of 'UIApplicationMain'
    /usr/bin/gcc -c -fsigned-char -g -ObjC -fobjc-exceptions -Wall -Wundeclared-selector -Wreturn-type -Wnested-externs -Wredundant-decls -Wbad-function-cast -Wchar-subscripts -Winline -Wswitch -Wshadow -I/var/include -I/var/include/gcc/darwin/4.0 -D_CTYPE_H_ -D_BSD_ARM_SETJMP_H -D_UNISTD_H_ HelloWorldAppDelegate.m -o HelloWorldAppDelegate.o
    In file included from HelloWorldAppDelegate.m:1:
    HelloWorldAppDelegate.h:3: error: cannot find protocol declaration for 'UIApplicationDelegate'
    HelloWorldAppDelegate.m: In function '-[HelloWorldAppDelegate applicationDidFinishLaunching:]':
    HelloWorldAppDelegate.m:6: warning: 'UIApplication' may not respond to '+sharedApplication'
    HelloWorldAppDelegate.m:6: warning: (Messages without a matching method signature
    HelloWorldAppDelegate.m:6: warning: will be assumed to return 'id' and accept
    HelloWorldAppDelegate.m:6: warning: '...' as arguments.)
    make: *** [HelloWorldAppDelegate.o] Error 1


    is this for 2.0? ALso how would I assign an icon for it? And how do I rename it? Sorry, and thanks!
    Last edited by alexfunari; 10-16-2008 at 03:49 AM.


  6. #16
    Moderator Array

    Join Date
    Aug 2007
    Posts
    781
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    51

    Default

    The app above is meant to be compiled using the SDK headers, not the "2.0 Compability Toolchain headers".

  7. #17
    Rookie Array

    Join Date
    Oct 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    so how do I go about doing that? Or would you just make the app real quick for me?

    Check your pm.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Coding...
    By sabtuzdeamon in forum Kernel / Kext (Driver) Support
    Replies: 0
    Last Post: 01-11-2011, 04:35 PM
  2. need help with coding the simplest program!
    By alexfunari in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 10-04-2008, 02:01 AM
  3. [Req] Simplest Way to get a constant wallpaper for 1.1.4
    By sonread2 in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 03-23-2008, 07:02 AM
  4. Easiest, Simplest way to go 1.0.2 to 1.1.4 unlock? Help! :)
    By westsidegrc in forum iPhone "2G" (Rev. 1)
    Replies: 2
    Last Post: 03-05-2008, 01:13 AM
  5. Coding Help
    By Nuttynutter123 in forum General
    Replies: 0
    Last Post: 01-06-2008, 01:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:03 AM.
twitter, follow us!