iphone

iPhone app icon messes up on simulator 4.0

Greetings! I've been developing this app for the iPhone using sdk 3.1.2 the customized icon looks fine when using the 3.1.2 simulator (and earlier) however, it shows differently using the 4.0 simulator. is this a problem with the simulator? or does making customized icons work differently for iOS4? thank you and have a nice day :D ...

Iphone CATextLayer doesn't show it's text.

Here is my new bee issue: I was simply trying to add a CATextlayer in an UIView layer. However, according to the following code, I only get the CATextlayer's background color be displayed in the UIView, without any text. Just wonder what did I missed to display the text. Could anyone ofter a hint/sample how to use CATextlayer? Thanks. ...

imagemagick convert command equivalent for iphone

Hi all, I have no experience with imageMagick, it is a very powerfull library. One question. How can i convert the command line example that uses command line "Convert" command to the iphone version ? I mean, i do not know what command to use instead of convert command Thanks to all ...

How to redisplay a page in iPhone UIWebView

I've got a UIWebView which starts off with the scalesPagesToFit property set to YES. This loads up the page and scales it fine. When the user taps a button I want to turn off the scaling and show the page full size but I'm struggling to figure out how to force the page to redraw. I specifically do not want to refresh the page (ie fetch i...

Store Observer not being called always

Has anyone else here experienced problems with their Store Observer class not being called always when the user for instance cancels a request (or purchases something) We just had our update that brought in app purchases go live last night, and before that we had obviously tested everything tons of times against the Sandbox and everythi...

OpenGLES - Rendering a background image only once and not wiping it

Hello, first time asking a question here but been watching others answers for a while. My own question is one for improving the performance of my program. Currently I'm wiping the viewFrameBuffer on each pass through my program and then rendering the background image first followed by the rest of my scene. I was wondering how I go about...

objectWithFieldNAme Best Practice for CoreData

Hello, I'm trying to implements some methods for my CoreData models and I'm wonndering if the way I'm doing it is a good practice. I want to implement methods of the type getObjectsWithFieldName. This methods could be used by severals views. So the way I'm doing it is implementing a Class method in the model in the following way: +(...

Why does sqlite3_bind_int not appear to be working in my code?

Hi I am new to iphone, i tried to select the values from database i gave the conditions through sqlite3_bind_int() everything worksfine (ie. Database is opened) but when i compile the line sqlite3_step(statement) it is not fetching the values but according to my query it should fetch values. I dont know weather the values are binded. A...

Unable to get UIAlertView Delegate methods

Hi, I have a view controller where i am displaying a alert view from another class. The coding of alert view is not in View controller. The alert view is visible but i am not able to call the delegate method in the view controller as the class in which i created is an NSObject class. Can some one please guide me how to set the delegate ...

How to detect orientation in costomNavigationbar?

i need to draw PortraitImage or LandscapeImage when my costomNavigation has been change to portrait or landscape. ...

Which are the fonts available in iphone sdk?

I want to know which all fonts are currently supported by iphone sdk. ...

How can I put the MPMediaPickerController cancel button on left side?

I'm developing an app and so far all cancel buttons have been on the left side of the navigation item. I thought this was standard and that's what Apple do with their apps. That is until I ran into the MPMediaPickerController which has it's cancel button on the right side of the navigation item. Is there anyway I can move this to the l...

setting target for disclosure button on subclassed UITableViewCell

I've created a subclass of UITableViewCell to create some custom appearance and UI functionality ('swipe to reveal delete button'). Some of the cells are disclosure/detail disclosure type, and have a UIButtonTypeDetailDisclosure etc added manually. I cannot use the table view controllers' UITableViewCellAccessory for row at index path m...

Playing html5 audio in android browser

I have a javascript that plays audio in the browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. (Testing using a htc desire with android 2.1.) Anyone know why? My code: function playHTML5(sound, soundcv){ // sound = url to m4a audio file // soundcv = div in w...

iPhone: How can I store a high score to disk.

I have a int which is my high score: NSInteger highScore; I want to store it persistently to disk Do I have to convert it to a string, then write the string to a file, then parse it back when I want to read it. Or is there a better way to store small amounts of data? ...

How to get the shine effect of UIButtonTypeInfoLight?

When tapping a UIButton of type UIButtonTypeInfoLight you get a nice shine effect around the button. Is it possible to add this effect to custom UIButtons? ...

webservice In Iphone SDK?

hi, i have downloaded WSDLObjC-0.6 from google to enable SOAP webservice in IPhone SDK.But is is as App file,how can i integrate that file to iphone SDK and to use SOAP webservice? Any help please?(Tutorial says to Integrate This) ...

[iPhone] How to dynamically resize UITableViewCell height

I have the classical grouped UITableView with editable UITextViews inside every cell. This text views can be single or multi-lined, and I want the cell to increase its height as the user writes and the text starts a new line. My question is: do I need to reload the whole table just to increase the height of a cell? Isn't there any other...

UIView autoresizingMask problem

In iPad. I have a UIViewController with another UIview inside it, at the bottom. ____________ | | | | | UIView | | Controller | | | | | | X | ------------ The UIView is the X. I define for it an autoresizingMask like this, on the viewDidLoad of the UIViewController self.view...

UITableView Reusable cells

Can someone explain me the way reusable cells works for single table view? How many reusable cells a datasource should create? So far in all samples I've seen only one. Would one even need more? ...