iphone

OnSubmit with Mobile Safari

While using jCart I noticed that it did not work on the iPhone. After some testing (and speaking with the developer on the jcart forum ) it seems that it fails to call the submit handler when clicking a submit button: $('form.jcart').submit(function(){...}); I have tried changing this to: $("form.jcart input[type='submit']").click(f...

Sorting NSStrings of Numbers

So I have an NSDictionary where the keys are years as NSString's and the value for each key is also an NSString which is sort of a description for the year. So for example, one key is "943 B.C.", another "1886". The problem I am encountering is that I want to sort them, naturally, in ascending order. The thing is that the data source of...

I want to use Open AL for the iPhone but it is to low level

I want to change the pitch of my audio and I know that AV Foundation is not the place to look for that, but I don't want to learn Open AL because it is to low level, does anyone know what I would use as an alternative? ...

getting strange error when submitting to iTunes Connect

Hey there, I am on the last stage of my upload, and i clicked submit, only to receive the error; There was an error saving changes: NullPropertyException. Stack is: [Ljava.lang.StackTraceElement;@5528cffb what does that mean? I am 99% sure I built correctly. the error changes ( the @ bit) after a refresh and click of submit again. ...

having two table views in a single xib one of plain style and the other grouped styled

Hi, I want to use two tableviews under the segmentedcontrol. one is plain styled and the other is groupstyled. How can i controll the delegate and datasource for the two table views? -- Regards, Syed yusuf ...

How to get a blinking button? (two alternating pictures)

Hello, I want a blinking button. Actually my button look like this: [redButton setImage:[UIImage imageNamed:@"Button1.png"] forState: UIControlStateNormal]; [redButton setImage:[UIImage imageNamed:@"ButtonPressed.png"] forState: UIControlStateHighlighted]; Now I want to change the Buttonpicture in the normal State every second from Bu...

Customize each cell height of a table.

I want to adjust each cell height according to the dynamic data that comes from web. So, how can I fit the height of cell according to each data ? ...

UISharedApplication bug that cannot be determined

-(void) setupMyLocation { NSArray *viewControllerArray = [navigationUpdateFromDetail.navigationController viewControllers]; NSUInteger parentViewControllerIndex = [viewControllerArray count] - 2; NSLog(@"Parent view controller: %@", [viewControllerArray objectAtIndex:parentViewControllerIndex]); switch(parentViewControllerIndex){ c...

connectionDidFinishLoading - how to force update UIView?

I am able to download a ZIP file from the internet. Post processing is done in connectionDidFinishLoading and works OK except no UIView elements are updated. For example, I set statusUpdate.text = @"Uncompressing file" but that change does not appear until after connectionDidFinishLoading has completed. Similarly, the UIProgressView a...

Display Image using object (Iphone)

Hi, Here is what I have: smallURL:(@"bundle://image.jpg") this line will display me a picture store in the local path, no problem everything works fine. Now I'm using an object because the name for my picture will be store in my database, so I want to use the line like that: smallURL:(@"bundle://%s", [visuel lpath]) My problem...

How to I fix this "may not respond" warning?

Hi, How do I get rid of these warnings "Warning:'UIButton' may not respond to '-setPosition:' and "Warning:'UIButton' may not respond to '-addAnimation:forKey' I get them here: - (void)monBtnIn { [monButton setPosition:CGPointMake(113.5,256.5)]; [monButton addAnimation:[self monInAnimation] forKey:@"position"...

TableView To Navigation Controller on the View-Based Application Project ?

I built an application. On the one my views I used TableView. So now I want to change this Table view to a navigation controller. 1- How can I change UITable view to Navigation Controller.؟ ...

Using Cocoa Touch Tutorial: Extract Address Book Address Values on iPhone OS

I've followed the following tutorial, in the simulator it works great, however on my phone when select the address, Google maps launchs, I think I've fried my brain on this. I am using this in conjunction to a NavBarContolloer Any help would be great. Taken from: Cocoa Touch Tutorial: Extract Address Book Address Values on iPhone OS H...

set UIBarButtonItem style while a modal view is shown

While showing a modal view I change the style of a UIBarButtonItem in the view controller beneath. Though, when dismissing the modal view the UIBarButtonItem does not reflect the set style. Do I need to send some refresh message? This is happening in the simulator. If the device behaves the same, I don't know. ...

how to retrieve a string from an NSArray of strings.

I have an NSArray of strings. I have to place each string in a cell of a table. How to get the string of the array into an NSString ? ...

iPhone MapView interrupted

I have a mapkit / view and it works fine - but I scroll around and after 2 - 10 moves my app crashed... and this only with a "interrupted". Here is part of my code. I think it's a problem with the background threads and an array release / override problem. Some background info: I generate a "session" key (MapKey) on mapview startup an...

Using Navigation Controller Template and a getting a buttton to load a UIwebview without leaving app

I have a Navigation Controller app and i'm using this code to switch views: - (IBAction)switchPage:(id)sender { if(self.fourthViewController == nil) { FourthViewController *fourthView = [[FourthViewController alloc] initWithNibName:@"FourthView" bundle:[NSBundle mainBu...

Pros and Cons of Listener/Observer approaches to notify Model changes

In any typical iPhone application, there will be model classes that are responsible for data loading/parsing. Upon completion of the data loading/parsing tasks, the affected controllers needed to be notified of the change in the model and update the view accordingly. There are several listener/observer approaches for this in iPhone appl...

How can I access the call_history.db file in iPhone((including other database files) ?

How can I access the call_history.db file(including other database files) ? I hope that access call_history.db file under "@/private/var/mobile/Library/CallHistory/call_history.db" folder in iPhone. Some people tell following this : Note that the database cannot be accessed using standard SDK or API. Issue is we cant connect to call_...

How to optimize quartz 2d?

I have a block of code that's essentially: for(int i=0;i<aInt;i++){ CGPoint points[2] = {CGPointMake(i,0),CGPointMake(i,bArray[i])}; CGContextStrokeLineSegments(myContext, points, 2); } which is causing a bit of a bottleneck when aInt gets large, as it's likely to do in my case. I don't know enough about quartz...