iphone

Display CoreData Records

Hi, I create an application using Coredata. I create a XML file and store all data into XML file. Then using coredata i store them into Database. Now i want to view the all records from core data. My application create a sqlite file. But if i use select command in sqlite, there is no records displayed. But It shows "no errors". If ther...

iPhone: Create a reusable component (control) that has some Interface Builder pieces and some code

I want to create a reusable component (a custom control) for the iPhone. It consists of several standard controls prearranged on a View, and then some associated code. My goals are: I want to be able to use Interface Builder to lay out the subviews in my custom control; I want to somehow package the whole thing up so that I can then ...

Ignore Tab character in UITextField... (iPad app)

Hi everyone, I have a TableView with TextFields in each cell and I want to those textfields ignore the character tab (/t). When the tab key is pressed, the textField:shouldChangeCharactersInRange method it's not called Does anyone knows how to do this? I know that there is no tab key in the iPad keyboard but the blutooth and dock one...

make previously created classes part of an object graph in core data

I have an iPhone project with several classes I need to make NSmanagedObjects so I can use them with Core Data, I know how to create new classes from the model, but is there a way to do the opposite, link the classes with the object model graph. ...

How can I parse a longer JSON file than a NSString ?

Hi ! I'm a bit stuck in a project. I was writing some code to get a JSON file and store it in an NSString before parsing it into a NSArray. But I get an error: 2010-10-27 20:59:44.813 GeraldKervyn[21752:207] -JSONValue failed. Error trace is: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leading chara...

Using JSON to ask Google Maps for a Shop

Hi to all. I am using the JSON iPhone framework v2.3.1, and I want to query Google Maps about shops, hotels, etc. It is possible to create an URL direction that gives me a list of directions? Actually I am using this Objective C code. - (void) searchCoordinatesForAddress { //Build the string to Query Google Maps. //I don't kn...

prevent viewcontroller from being pushed to splitviewcontroller twice

I want to prevent users from making the same selection twice or more and just pushing and pushing the same view controller onto the stack ...

ASIFormDataRequest NULL response

Hi all, i have simply form request in my Obj-c code, which calls a PHP code from my server ASIFormDataRequest *req = [[ASIHTTPRequest alloc] initWithURL:url]; [req setPostValue:[NSString stringWithFormat:@"%f",slat] forKey:@"mylat"]; [req setPostValue:[NSString stringWithFormat:@"%f",slng] forKey:@"mylng"]; [req start]; NSLog(@"respon...

Leak in CGBitmapContextCreate

Trying to find the leak in my code I removed all the thing that did not matter, leaving the following code: static int last_memory = 0; void report_memory(NSString *name) { struct task_basic_info info; mach_msg_type_number_t size = sizeof(info); kern_return_t kerr = task_info(mach_task_self(), ...

Remove UITabBarItem

Hi everyone, How can I remove a UITabBarItem from a UITabBar? I haven't tried anything, because I haven't found anything from Google searches or the documentation for UITabBar, UITabBarController, or UITabBarItem. Thanks in advance! :) ...

Getting TTPickerTextField to work?

Hello I am crossposting this in the groups.google because I find it so very difficult to get answers on Three20 I can see from other posts that it is hard getting some newbie/starter help on Three20, but it is really hard to get started with Three20 with the lack of documentation and examples, so I will try :) Bear with me, I am just t...

iPad crashing when linking with CoreVideo or CoreMedia

Hi there, I have an application that runs fine on the simulator. When trying to run on the actual iPhone, I get link errors that require the CoreVideo and CoreMedia frameworks - and then the application runs fine on the iPhone hardware and the iPhone simulator. Unfortunately, as soon as I do that, the application crashes on the iPad s...

Customizing the camera View in UIImagePickerController

Hello all, I wanted to know if there is anyway, I can customize the size of camera view while using UIImagePickerController. Like when I use the camera option to pick up the image, it takes the whole screen. Instead I want it to take just a square window of 250 by 250. So that rest of the stuff of the screen wont be affected, and you wi...

Custom swipe function is working inconsistantly

I am trying to write a class that handles swiping (touch down, move, touch up) actions. This is the code I am using to get the time and distance for the object to travel after a swipe. The results are very inconsistent- sometimes too slow or too fast, sometimes the obejcts move too far or not far enough. Can anyone give me some directi...

ScrollView: PageControl dot doesnt change with the page

Hi, I've written an iPhone App with a TableView and a detailView which contains a ScrollView with 2 pages (both containing an image) and a pageControl displaying 2 white dots. It al seems to work perfect. The view scrolls to the left and show the next page (just as it should) Except for the little white dots (PageControl dots) that are ...

iphone sdk: How to implement deletion animation from apple's notes app?

hi, is there a way to somehow use the same animation apple in the notes app, when notes are deleted? The same animation is used again in the camera app and is triggered when you delete a pic. Can anyone help me out on this? thanks in advance! ...

How to use the YAJL for objective c

Hi can any one tell the steps to use the YAJL to parse the json object in objective c Thanks.. ...

Javascript maturity on Blackberry, Android, Windows Phone 7 and iPhone

What is the state of maturity of javascript on these platforms? Is safe write a prototype app and trust that it'll work on all of these devices without headaches? ...

Casting of objects to dynamic types at runtime

I have the following code: + (UITableViewCell *) createTableViewCell: (NSString *) cell_id withTableView: tableView { SomeViewClass *cell = (SomeViewClass *)[tableView dequeueReusableCellWithIdentifier: cell_id]; if (cell == nil) { NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed: @"AViewCell" ...

Is Multitasking Enabled iPhone SDK

Hi, Please could you tell me how I could find out if multitasking is enabled on the iPhone. I am using Xcode. ...