iphone

Apple push: does it need an application at all ?

Do we need to install an app to receive some push from a service ? Is there a way to register an iphone somewhere (website / apple server) without having an app installed on the iphone to register to the push service ? ...

Parse google reverse geocode json on iphone

I'm using json-framework to parse some simple json in my iphone app, and it works fine. But now I'm needing to parse the json from google's reverse geo-coder which is very complex and really big. The json output can be seen here: http://maps.google.com/maps/geo?q=40.714224,-73.961452&output=json&sensor=true_or_false I'm trying t...

Fetched Results Controller with NSPredicate vs. Core Data NSSet

Okay, so I have a UITableView hierarchy. The top level controller is for Categories, which are selected via Fetched Results Controller with no predicate for the Category Entity. When a user taps a cell, they are advanced to the Items Table View Controller. At this point, I assumed I should use another fetched results controller with an...

Books and resources for smart phone application architecture (iPhone or droid in particular)

Can anyone recommend any books or resources for learning smart phone architecture (specifically iphone or droid) ? I am lookinng to learn and get into smart phone development, having been doing desktop development for a few years now. ...

UITableViewCell background repeats if cell scrolls off screen

I want to apply a special background to the first cell in my UITableView: I am applying the bg in: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath This is how it is applied: if (indexPath.row == 1) { cell.contentView.backgroundColor = [[UIColor alloc] initWithPatternI...

Remove the old button when double tap

UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom]; [btn1 setImage:[UIImage imageNamed:@"restaurant.png"] forState:UIControlStateNormal]; UIButton *btn2 = [UIButton buttonWithType:UIButtonTypeCustom]; [btn2 setImage:[UIImage imageNamed:@"restaurant1.png"] forState:UIControlStateNormal]; if([scaleStr isEqualToString:@"0.139738...

Closest thing to XCode, Objective-C on Windows (Not Hackingtosh), perhaps interface-builder

I have to do some XCode/iPhone SDK work tomorrow, and i would like to know how I can prepare on Windows. What is the closest I can get to XCode and/or Objective-C developer experience, ideally IOS or similar Objective-C GUI. Can also be say an interface-builder that works in a similar way. I know Hackintosh/Vmware solutions, I think i...

iPhone mobile number using Core telephony

As far as my understanding, there is no public API available in iPhone SDK to find the users mobile number. Can we find the mobile number of iPhone user using the Core telephony framework added in 4.0 SDK? ...

google map (KML form) URL parameter for showing max number of results

I want to download kml contents from google map url, but kml file contains max 20 records.for eg: when i search say for "hotels near 45.958594,67.950950" in google map (output=kml) it will give me max 20 results at a time. How can i get all results info at first time (in kml form)? ...

UIDatePickerModeDateAndTime leaks

After a bit of time searching and commenting out my code, I've discovered that UIDatePickerModeDateAndTime leaks while UIDatePickerModeDate doesn't - however, I need to be able to set date and time via a picker so I need ...DateAndTime. What's odd is that any other problem that I've encountered, I've Googled it and usually found referen...

How to draw over text, or highlight/underline something in a UIWebView?

I need to develop an application like an eBook reader, that loads PDF or HTML files. This part is easy. The part where I'd like some reference or example is the feature that allows the user to highlight/underline text with the finger, or draw circles or ellipses around the text. So you activate the "pencil" or another drawing tool, and "...

how to display a number on text view which was stored in variable

i want to display a number assigned to variable on text view ... how to show number on text view ...

IPhone 4 images Local vs Server?

So I have been doing some research on how to handle the different resolutions of iPhone screens. In the documention, found here: https://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10 Th...

UIScrollView background image scrolls faster than content

Hi, i just noticed, having a backgroudn image inside of a UIScrollView along with some other UI-Elements, that they scroll with different speed. i created a UIScrollView child in my main view, added this testing code: -(void)viewDidLoad { [super viewDidLoad]; oRulerYear.backgroundColor = [UIColor colorWithPatternImage: [UIImage image...

UIImagePickerController cameraViewTransform acts differently in iOS 4

Hi folks, I upgraded both my iPhone and SDK to iOS 4.0.1 and now my App doesn't run the same way it was running in iOS 3.x. My App uses the UIImagePickerController with a custom cameraOverlayView (which I'll suppress in this post). The main point is that I need to see the iphone camera in fullscreen mode. To go straight to the problem, ...

transmit touch events from uiview to uiwebview

Hi, How to send touch events from uiview to uiwebview without using undocumented methods ? My problem is to hide/show the tabbar and navigation bar when the user touches the uiwebview. this actually needs customization of uiwebview which is not adviced. I am planning to put a transparent view on top of the uiwebview and then recieve th...

iPad app orientation.

I recently submitted my app for the ipad, and it was rejected for not supporting all four orientation types. Right now I have it set up so that it auto rotates to landscaperight and doesn't rotate again. How would I let it rotate to the other three orientations(or just the two landscapes(because I don't want to create new xibs unless I h...

Positioning circles

Hi, I'd like to position a given amount of circles in a field, whose size is also known. The circle's sizes can be freely choosen (although it should be >0). They may not overlap. The problem: Performance is critical. Just randomly positioning them and reposition them in case they overlap is not fast enough. My target is the iPhone, s...

mapkit annotations - displaying more than one location pin

does anyone know how to display more than one location on a map? i have a map w/ one pin at a lat/long point. I'd like to have pins for many locations. another related question - if i wanted a map to display all McDonalds in the California, for example, is there a way to do this by feeding a search result from google maps into my app? ...

UIImageView not displaying image - iPhone SDK

Hi all, I am using AVFramework to capture camera frames and I would like to process and display them in a UIImageView but am having some trouble. I have the code: // Delegate routine that is called when a sample buffer was written - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBu...