iphone

UIButton image property iPhone

Hi I was wondering if there was any way that I could change the size of the image and also its position within the UIButton? Thanks ...

iPhone performance tuning: __longcpy consume most cpu time and running very slow on 3GS but very smooth on older version

Hi guys, I'm currently working on a iPhone STG. I developed the system based on a 2D graphic engine developed by other engineers. Both are based on C++. The game run extremely slow on 3GS(about 5~10 fps). I tried 2 version of iOS: 4.1 and 3.1.2, both very slow. But when I installed the game on an iPhone (yes only "iPhone". Not 3G. Not ...

Where to store label font information - in the Model or the View?

What is the best practice for storing font information of labels in Cocoa-Touch following the MVC paradigm? In my data model I would like to store information that are displayed by a custom view as UILabels. It is evident that the label text belongs to the data model. But where should I store the corresponding font (and in my situation ...

send data from iphone to web page

hi all if someone can help me to understand how can i use http to send data from iphone app to a web page ;any tutorial,sample code can help me ...

iPhone iOS4: API for AVRCP (ff/rewind commands on Bluetooth headsets)

Hi, I know that AVRCP abilities were added to iOS 4.1 (in iPod application now you can forward and rewind songs by using hardware buttons on supporting headsets). I am trying to find any API for using these abilities in a music application that I work on. The requirement is to catch play/stop, forward and rewind buttons events from th...

Correct way to poll server in background

Assuming this is possible, I would like my iOS application, when backgrounded, to poll a server (i.e. essentially, retrieve the contents of a URL every 30 minutes and notify the user if it contains something "interesting"), essentially in a similar way to the way the built-in mail client assumedly works if you're not using push notificat...

Writing temporary files in iPhone app

Hi, I am just curious about what is the behavior of temporary directory in an iPhone app. (If my memory is correct there is a tmp directory in the same location as Documents) What happen if I save some files there?, would they be deleted automatically when my app is terminated or should I do it manually? in that case What would it be t...

libxml allocates too much memory on the iphone

Hello everybody, I have a problem with the libxml parser on the iPhone! Im using the PerformXMLXPathQuery to parse a xml file with about 100'000 lines. The app breaks while running the PerformXMLPathQuery because it runs out of memory. What can I do here? Thanks, Markus ...

Does anyone have any tips on submitting to clients proposals for iPhone apps?

I'm just starting out with a friend creating iPhone apps and the biggest hurdle other than finding clients is knowing how to structure proposals for clients. Is it the norm to write a 1, 2 or 3 page proposal? Obviously I don't want to bore the client just with the initial proposal (sales pitch with quote). How should I break down the p...

I have revoked my active development certificate ,and unable to create a new one, what is the solution ?

I have revoked my active development certificate ,and unable to create a new one, what is the solution ? edit: I followed these instructions Generate a Certificate Signing Request (CSR) with a public key In your Applications folder, open the Utilities folder and launch Keychain Access. Choose Keychain Access > Certificate Assistant > ...

How can I map the iphone's compass values to the screen coordinates?

Hi everyone, I'm doing an AR app that shows a UILabel in the cameraView depending of the position of a concrete place. When the compass of the iphone is leading to the place, the label is shown in the center of the screen. My problem is that I want this label rotates to the left or the right when I turn the iphone. I guess there is some ...

Use NSMutableURLRequest with JSP

Hello, I'm trying to send an HttpRequest from an iPhone app with some parameters. The form is like this: foo.jsp <form action="/foo" method="post"> <div> <input type="hidden" name="id" value="1" /> <input type="hidden" name="vendidas" value="25" /> </div> <div><input type="submit" value="Send!" /></div> </form> So in the iPho...

Touch problem with Tapku Graph on the device

Hi I created an app that uses the Tapku Graph API which works fine so far. The only problem I have is that on the device I can not scroll the screen from left or right as I can on the simulator. Any idea ? -mcb ...

transparent button

Hi at all, there is a way for put button transparent not with alpha?? I'm explain, I have a background image on my view, there is also some button with image background, if the image as a transparent part I see on button a white color inside the view background image. There is a possibility to exploit the image transparency? kikko088 ...

Failed to swap renderbuffer in iphone app

Hi all Im having a problem with an iphone app that im working on.im using objective c and cocos2d. The frame rate just drops drastically. I have tested for leaks and allocations etc using instruments and all looks good on that front. I am not using any particles or sound at the moment so its not anything like that. its just animated spri...

Load HTML NSString into a UIWebView

Im doing a project where I connect to a webpage using the NSURLConnection to be able to monitor the status codes that are returned (200 OK / 404 ERROR). I would like to send the user to the top url www.domain.com if I recieve 404 as status code and if i recieve as 200 status code I would like to load the page in to a webview. I have seen...

jQtouch + Phonegap: Document head setup

Hi there, I've recently built a webapp using jQTouch & packaged in PhoneGap (both latest versions). I'm now attempting to optimise the app, and was hoping to get some information on how to correctly setup the of the document. Currently I simply have the jQTouch javascript (no phonegap.js), and it seems to package and run ok on the ip...

Problem : UIScrollview bouncing makes Parent UIScrollview bouncing

I have a fullscreen UIScrollview(B) in a fullscreen UIScrollview(A). A has a contentsize = number of page Horizontally B has a contentsize = number of Subpage Vertically Inside B , I have a small UIscrollview (C) that scroll in the same direction than B... So vertically too. When C is wildly scrolling, it creates a hard bouncing eff...

view background

Hi at all, I have a little problem, I have a view with a UIScrollView, I've imposted a background image on my view with self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]]; on simulator is all ok, the image are fixed while I scroll down but on my device the image was repeat while ...

What is this component called?

http://itunes.apple.com/app/bloomberg/id281941097?mt=8 On the second screenshot or this Bloomberg iPhone app.. Can anyone tell me what is the component just above the TABBAR, which shows (Bloomberg Last Updated: 22:40) called. I don't think so there is such component or may be i don't know. Or if you can tell me how ...