iphone

iPhone programming: How much data can I store in my app's Documents Directory (root folder)?

The reason I ask is my app lets users cache map tiles. Does anyone know the real cap on how much data I can let them store? ...

NSMutableArray removing the object but then app crashes

Hey Guys, I have what I think is a weird error but of course i'm relatively new to iPhone Development so it's possible that it's not all that weird after all. I have an array (NSMutableArray) of objects that I am keeping track of (one is added to the array every time the user touches a button) what I'm trying to do is when the array re...

What is this strange code signing certificate for iPhone iPCUHost-XXXXXXXX-XXXXX-XXXX-XXXX-XXXXXXXXXXXX?

I noticed iPCUHost-XXXXXXXX-XXXXX-XXXX-XXXX-XXXXXXXXXXXX showing up in my keychain and Xcode code signing list. What's this and where is it coming from? Can I delete it? ...

Strategy for making an iPhone Facebook 3.0 like home page

What would be your approach to creating a home page like the new facebook 3.0 app has to offer? There's a grid of 3x3 UIButtons it appears if you look here: If you wanted to replicate a similar user interface, would you programmatically have 9 individual buttons that you place on the screen through some kind of loop? If so what would ...

iPhone SDK UIDatePicker loses value if wheels are still scrolling

In the Clock application under alarms, this behavior can be verified. After creating a new alarm, try opening the alarm, editing the time of the alarm. WHILE THE DIAL IS STILL MOVING, hit the save button. The value you had scrolled to will be replaced by the value that the scrollers were last stopped at. I am using a UIDatePicker in a UI...

Multiple distribution provisioning profile allowed?

What happen when you install multiple distribution provisioning profile on the same system? Can you still code sign your app? I don't quite understand how the provisioning profile works, can someone explain? ...

iPhone View doesn't update with UITabBarController when changing tabs programatically...

Setup a new iPhone window based project with a UITabBarController and connect everything up in IB. Using self.tabBarController.selectedIndex = 1; you should be able to switch tabs programmatically. But, it only seems to work in certain circumstances. If you tie it to an IBAction or as the result of the image picker it works great. But, i...

Cocoa - Return information from NSOperation

I have an IPhone app that uses webservices to get data from a server. I'm putting each call to the webservice in a NSOperation subclass so that it can be threaded. My question is, what is the recommended way to pass back information from a completed NSOperation subclass. I'm currently sending a NSNotification at the end of my main met...

How to create piano UI in Iphone?

Hi, I am newbei in creating such piano based UI application. I am developing an application in which i have to use Piano. How to create piano UI in Iphone? How to create it using Interface builder ? or is there any other way to create the piano? I am in urgent need to create such UI,If any body has any solution or any useful code or an...

Read and store user defaults in a UITableView using mySettings

Does anyone have experience using the mySettings api's link text for reading and storing app preferences into a FlipSide View? If so, can you please share some Objective-c sample code on how to get it working with a standard utility flipside view? Any help would be appreciated. ...

Move an UIImageView around in a UIScrollView

I'm creating an application where I want to let the user move (not pan) an UIImageView around by dragging it on the screen. Additionally, I want the user to be able to zoom the UIImageView in and out. As such I've been using a custom UIScrollView that forwards single touches to the 'contentView': @implementation JM_UIScrollView - (BO...

tabbar set focus

hi i m making an application in iphone in which am creating tabbar in my idocviewcontroller class,In homeviewcontroller class there is button on which click i navigate to class askadocviewcontroller class. The problem is that view is navigate but askadocviewcontroller tabbar is not selected with navigation from home to askadoc. it select...

view flip and tabar selection

Hi iProgrammers, In my app , i have 5 tabs at the bottom,namely home,ask,tip,inbox,disclaimer...In my home view...there is an botton,clicking on which flips the view to in the same home view tab...in the new view i have a picker in which on selecting the values takes me to another view through flippin in the same tab ..in the 2nd new vi...

UIWebView and Javascript from button

So I would like to run the following Javascript on an open webpage in a UIWebView: - (IBAction)pushDownoad { [webView stringByEvaluatingJavaScriptFromString: var myWin=window.open("","myWin","width=800,height=600,scrollbars,resizable,menubar"); var myStr=document.documentElement.innerHTML.toLowerCase(); myStr=myStr.re...

ObjectFile problem

I have created sample application in iphone 2.0... Now i want to make this application as object files ... How can i do this? Can anyone help me ? Thanks in advance..... ...

Convert image to grayscale

Hi, I am trying to convert an image into grayscale in the following way: #define bytesPerPixel 4 #define bitsPerComponent 8 -(unsigned char*) getBytesForImage: (UIImage*)pImage { CGImageRef image = [pImage CGImage]; NSUInteger width = CGImageGetWidth(image); NSUInteger height = CGImageGetHeight(image); NSUInteger byte...

Hiding the UINavigationBar only for the root UIViewController

I am using a UINavigationController (side note: inside a UITabBar) which by default gives you a UINavigationBar on the top. If I hide the bar through IB, the bar is gone not only for the root UIViewController but also for all the controllers I push onto the stack. Leaving me no (automatic) way to pop back. So how can hide the UINavigtio...

sectioned tableview

hi, i am making an application in iphone, in which i am creating tableview with 2 sections. i have created sections parts of tableview, but the problem is that i need different images in every cell of each section. anyone has any solution for this ...

Verify receipt for in App purchase

I have been playing around with in app purchases for a few days, everything works fine up until the point where I try to validate the receipt with the app store, as i am constantly getting back an invalid status. I am passing the receipt data to my PHP server then forwarding from there to the app store and once I get a valid response I...

Trying to set unique CoreGraphics (iphone) States for each Stroke...

I've got a number of 'line' objects -- each storing information about a line drawn using Core Graphics. The problem is, that though there may be several line objects each having a unique color and stroke width, all lines are getting drawn under the SAME color and stroke width. Each line object has attributes such as stroke color, strok...