iphone

Adding a new row in a UITableView

HI Everyone, It is my first post here and this is my problem: I am trying to get some data from a REST API call and show then in a UITableView. This s what I am doing: in the viewDidLoad: 1) here I initialize my array of things to show in the Table (that is empty at the beginning) 2) the table is loaded (with 0 rows) and 3) then the H...

Opengl es glReadPixels

if i write glColor4f(1.0,0,0, 1.0); glReadPixels(touch1Point.x,viewport[3]-touch1Point.y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixelColor[0]); pixelColor return 255 , 0 , 0 what is the right glReadPixels call that give me back 1.0 0 0 ? ...

How to overlay on top of the Keyboard in xcode

How do you overlay something, ie a UIImageView over the keyboard which pops up when editing a UITextFIeld? ...

What is a good tutorial for peer-to-peer networking on the iPhone?

I would like to make a game where two players are connected via WiFi or Bluetooth, but I've not found any good tutorials out there on this. What resources do you recommend for learning peer-to-peer networking on the iPhone? ...

sorting mutable array in alphabatical order

Hi i am having a nsmutable array and in that nearly 50 -60 object having different names ,and can i sort this array in alphabatical order (Is it possible, How?) (is it a duplicate question ?) ...

Passing info to a delegate from a UIActionSheet

My understanding about passing data back to a delegate completely revolves around making a new view controller and having it conform to a protocol. I am trying to get a time input back from a UIDatePicker set with the UIDatePickerModeCountDownTimer mode and I am running into issues. Inside of Main1.m I create a UIActionSheet *action, ...

When changing UIWindow subviews, orientation is not set

If a view is added to the window, orientation is set as portrait even if the device is in landscape. If the view is added in the app delegate, application:didFinishLaunchingWithOptions: method, then it works correctly. But if the view is added later it does not. As an example, I have a routine to switch views. Simplest form is: - (void...

Standard idiom for property change notifications on iPhone

Lets say I have a simple object that represents the state of a puzzle. The puzzle can be either solved or unsolved. I have two controllers with references to this puzzle object and they are visually representing the state in two different ways - say an on/off switch and a red/green light. When the 'solved' property of the puzzle changes...

Can't obtain location data, unless it's direct GPS Fix

Starting this morning my application can not obtain CLLocation data unless direct GPS Fix established. I received few dozen complaints from SouthEast Asia and all my US customers are out of luck since the midnight. I noticed that Echophone and Zillow apps are malfunctioning too. Apple's own Maps.app does not check CLLocation's timestamp ...

Max image width in Mobile Safari? Getting unwanted downscaling on panos

I want to display very wide, panoramic images in Mobile Safari (iPhone, iPod, iPad). These work fine in OS X Safari and in other browsers, but on Mobile Safari there seems to be a limit on the maximum image width. Consider this web page: http://basepath.com/public/test1.html with this source: <!DOCTYPE HTML> <html> <head> <meta name ...

How to understand iphone DNS behaviour

Hi, We recently made a change to our DNS settings, which coincides with our iphone app breaking. The old DNS settings should still work fine, i.e it should be a seamless switchover. In a browser, the site appears Over 3G, the server appears unreachable to our app (hard to provide more info, iphone build was outsourced) over wifi, the ...

How to use CGPathApply properly

I'm trying to use CGPathApply to iterate over each CGPathElement in a CGPathRef object (mainly to write a custom way to persist CGPath data). The problem is, each time it get to the call to CGPathApply, my program crashes without any information at all. I suspect the problem is in the applier function, but I can't tell. Here is a samp...

iAd error "Ad inventory unavailable" [Solved]

I'm adding iAd to my app. Now, in simulator, it works well but when I load it on a device (v4.1) the ADBannerViewDelegate calls bannerView:didFailToReceiveAdWithError: with this description on the error.userInfo { ADInternalErrorCode = 3; NSLocalizedFailureReason = "Ad inventory unavailable"; } I think my iAd Network setup is ...

AdHoc provisioning profile problem

Hello guys! With AdHoc provisioning profile I can't start my application on iPhone. I get this error: Error launching remote program: failed to get the task for process 1096. Error launching remote program: failed to get the task for process 1096. The program being debugged is not being run. The program being debugged is not being run. ...

How to implement an odometer on an iPhone

I'm working on a fairly simplistic trip application for the iPhone for use when running, biking, etc. One of the features I'd like to implement is an odometer. I'm getting the location periodically via didUpdateToLocation. I've tried measuring the distance between newLocation and oldLocation and accumulating the result, but this is no...

Is it possible to get multiple MPMoviePlayerControllers in the same view?

I have written code so that technically there should be two MPMoviePlayerControllers within the same view, both ready to play an audio file. What always happens is that one pops up and disappears, and the other comes up and stays, and is fully useable. Any idea why one disappears? I'm not trying to play two at once, just want to give us...

Passing scroll gesture to UIScrollView from another view

Hi, I do have a view that has a UIScrollView and over it there is a view that display some text. When the user swipes over this view that contains text the UIScrollView won't scroll. How to make this view transparent in a way it relays the swipe gesture to UIScrollView. Thanks ...

Open my app through Email

Is there any way i can open my app through the email like suppose User A sends an xml file to User B through Email and when USer B click on it it open my app to extrat the tags from that xml file and show it to the User B. Please answer this question, as i am middle of completing my app. Thanks, ...

How to call WADL web service from iPhone

Hello All, Please can anybody help me i have problem to call web-service in iPhone which is WADL like this http://docs.sun.com/app/docs/doc/820-4867/ghmfe?l=en&amp;a=view How to call that kinds of web service from iPhone, in the web-service there are POST, GET, DELETE and PUT method that how can i request from iPhone Thanks in advan...

iPhone Callout Pin resize view for detail display

Hi, When the user click on a annotation, I display the default callout view with a title, subtitle and a right info button. When the user click on the info button, I would like the callout view to resize itself and display a detail view controller. Basically, I would like the same effect with an animation as the Google Maps applicatio...