iphone

Touch and Drag from one view to another

Hi all! I've search for some clues on this problem without much success. Hope someone can kick me in the right direction. I am prototyping a couple of apps where I need to design my own GUI. The GUI is made up by two separated UIViews where one of them contains a small thumb of an image. I want to be able to drag this thumb from the fi...

How to get information in javascript?(object c + UIWebView + AJAX)

I've already known that there is an interface in UIWebView for object c to call javascript. And now I have a problem: After the javascript is finished, there are some result in the javascript, and I want to get it out and use it with object c. Is it possible to get the result from javascript? ...

Iphone: NSManagedObject vs Native SQL queries

Approach #1 where I have native SQL and I can change it whatever I want if (sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK) { const char *sql = "select coffeeID, coffeeName from coffee"; sqlite3_stmt *selectstmt; if(sqlite3_prepare_v2(database, sql, -1, &selectstmt, NULL) == SQLITE_OK) { while(sqlite3_step(sele...

How to create a UITableView only?

Hi, Can i create a table by using only a UITableView without a UITableViewController? Is it possible, if it so how to do that programatically? ...

Where to put text files for iPhone UITextView

I have multiple UITextViews with corresponding .txt files. I'm reading them with NSString's stringWithContentsOfFile but I don't know the path where I should put my files. If I put it to /tmp/ on my Mac, it works in Simulator, but, of course, doesn't work on the actual device. So where should I put the files, so they'll work on both Si...

Obj-msg-send error in numberOfSectionsInTableView

import "AddBillerCategoryViewController.h" import "Globals.h" import "AddBillerViewController.h" import "AddBillerListViewController.h" import"KlinnkAppDelegate.h" @implementation AddBillerCategoryViewController @synthesize REASON, RESPVAR, currentAttribute,tbldata,strOptions; // This recipe adds a title for each section //Initia...

IPHONE - Flip animation when controller pushed

Hi, I had a look around and didn't find what I was exactly looking for ... Is there a way to get a flip animation when pushing a view controller ? I read that you can change the animation by using a modal view controller but AFAIK the animation for a modal view is from bottom to top and that's not what i am looking for ;) Is there a ...

iPhone memory leaks with store kit

Hello, I am trying to develop an application which uses storekit api. The document (Store Kit guide) suggests that the api will not work on a simulator. I found out that memory leaks will not be able to work on a device. I was wondering if any one can tell me how to check for memory leaks while using a store kit api on a project? How is ...

how to use libtar in iphone SDK?

hi, i want to untar a file in iphone.how can i do it?libtar is available, but how can i integrate with iphone SDK? ...

How to push UIViewController into UINavigationController from seperate UIView of different UIViewController which uses this view.

I have a UIViewController(AbcViewController) with NavigationController.AbcViewController uses UIView(AbcView) as its view. AbcView has a UITableView. I have set This TableView's datasource in AbcViewController and delegate in its SuperView i.e. AbcView. How will I push another UIViewController(XyzViewcontroller) into navigationController...

How are people popping their UINavigationController stacks under a UITabBarController?

I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController manages a UIViewController, which may itself branch out into other UIViewControllers below it hierarchally. My question is, in a case in which a user, under one tab, has navigated to a UIViewController that hierarchally BELOW ...

call method in a subclass of UIView

Hey, I've got a UIViewController and an own class, a subclass of UIView. In my ViewController I make a instance of the uiview. If I tap the uiview a function gets called within it and an overlay appears. TO get rid of that overlay later the user has to tap somewhere on the screen(besides the instance of my class) How do I tell my clas...

How to find (in javascript) the current "scroll" offset in mobile safari / iphone

I'd like to know the x/y offset of the how far the user has "scrolled" within the viewport in mobile safari on the iphone. Put another way, if I (through javascript) reloaded the current page, I'd like to find the values I'd need to pass into window.scrollTo(...) in order to reposition the document/viewport as it is currently. window.p...

how to run C funtion in iphone SDk?

hi, i have added one .h and .c file ,but i want to call the function which is in .c file from viewController?any help?if i add .h file and call that function linker error comes? ...

iPhone Chinese simplified to traditional character conversion

Is there a way to convert Chinese simplified characters to traditional characters in Cocoa/Objective-C? On the .NET platform you can include a VB dll in your projects that gives you access to a function for an easy conversion. Is there anything I can use in Cocoa/Objective-C that will allow me to do the same? I want to go between simplif...

Whats the correct way to alloc a UIImage to memory and release it iphone

Hi, Using Instruments, I keep on getting pointed to a memory leak with a UIImage. I think I'm assigning and releasing the memory correctly. The leaked object in instruments is described as NSConcreteData Is the following the correct way to assign and release a UIImage? UIImage* flagimg = [UIImage imageWithData: [NSData dataWithContent...

Most suitable way for audio streaming using AudioQue ?

I am writing an application, which sends audio data to server in real-time. I have done this task but, some time it make error. I believe, this is due to the bad architecture of my program. The program content is as follows: --For audio recording I wrote AudioRecorder class, which has implemented AudioCallBack method which is called by ...

UISegmentedControl with custom prev/next buttons

Hey, I am trying to reach the following result here I know how to configure the segmented control but I was wondering how to get the same icons ... I tried to do it with photoshop but I just can't manage to achieve the same quality ! I heard there is a possibility to use the "Apple symbols font" available on Mac (which contains thes...

Nil pointer returned for [exifData tagValue:]

Hello, I'm trying to read EXIF data from pictures taken with the apple camera's application, containning EXIF informations. I use iphone-exif library available at http://code.google.com/p/iphone-exif/. My problem is that I succes getting tag informations with [exifData tagDefinition:] function : EXFTag* tag = [exifData tagDefinition:[N...

Code example for iPhone UIGetScreenImage

I've seen a number of posts on UIGetScreenImage, however, not a complete working (short) code example. If anyone has a code example, from the prototype definition to an actual call, that would be greatly appreciated. Thanks John ...