iphone

Paging UIScrollView in increments smaller than content size

I have a scroll view that is the width of the screen but only about 70 pixels high. It contains many 50 x 50 icons (with space around them) that I want the user to be able to choose from. But I always want the scroll view to behave in a paged manner, always stopping with an icon in the exact center. If the icons were the width of the s...

Are there any GOOD iPhone orms?

I'm traditionally a .NET developer and am spoiled for choice when it comes to ORMs. My flavor of choice is NHibernate but there are a bunch of choices out there. I was wondering if anyone here uses an ORM when developing for the iPhone and, if so, how do the featuresets compare with that of it's Java and .NET counterparts. I understand ...

Keep Modal View row checkmarked

I have a RSS parser that displays the articles in a UITableView. I also have a button that brings up a Modal View where you can change the source of the RSS feed. I have 2 questions: 1) How do I keep the selected feed row checkmarked after I quit the app and open it again? 2) How do I call for the article table to reload when the modal...

Is it possible to change the keyboard type when using the prompt() Javascript function when using Mobile Safari on the iPhone?

Mobile Safari on the iPhone allows you to specify different keyboard types for text input boxes as demonstrated in the Safari How-To's for iPhone, here. However, I'm wondering if it's possible to change keyboard type displayed when a Javascript prompt() dialog is displayed. I know I can roll my own modal pop-up if I have to, but I'd ...

How to close iphone Safari window before launching native app?

Easy enough to register a custom protocol handler so that a native app gets launched by a URL in Safari. However, doing this leaves the current browser window open. If the app then provides a link back to a URL (via openURL), that url will open in a new Safari window, ignoring the existing window. I asked a question here about loading...

Choosing the right iPhone Developer Program

I am writing an iPhone apps for in-house use. There is 4 of us in the project team. We need to deploy the application to around 20 iTouch devices via ad-hoc distribution mode and there is no intention to put the application in the App store. The question is, should I go for the Standard Individual Program or the Standard Company Program...

Returning Multiple Values from a Function

Hey, so I'm making an iPhone app and in there is a common function that needs to be called. So I put it in it's own file and set it up, passing the parameters to that and all that. However, I'm not sure how best to return the values from the function. I read up trying to return the values in an array, but I'm not sure how to do it. i...

std::map initialization crashing on iPhone device, but not in simulator.

I've tried turning on the Call C++ Default Ctors/Dtors in Objective-C flag but I'm still getting an EXC_BAD_ACCESS error when I first try to access my map: (*[TextureBatcher getSharedTextureBatcher].getMap)[texID].vertexCount=0; (*[TextureBatcher getSharedTextureBatcher].getMap)[texID].indexCount=0; getMap just returns a reference to ...

Where can I find examples of Quartz 2D drawing on the iPhone?

Hi, I am going to develope the 2D game in Iphone using Quartz. what is the main Difference between Quartz and QuartzCore? I have searched a lot over the internet, but only able to find out the MAC OS with Quartz Examples. If any body has any Link/URL for Examples of Quartz(2D) using Iphone Developement,which would be run in the Real ...

Right to Left Alignment for UITableView

Hello All, I am working on an arabic app for iphone 3.0. i was wondering if there is a way that i can convert the UITableViewCell to be right-to-left. I want everything to be in the opposite direction. Any thoughts? ...

How can I get a method to call in a class while the user is in a view of another class?

I have an iPhone app based on a tabBar and tableViews. I want the user to be able to click on one tab and access options for filtering the data in the initial tableView. The problem I'm having is that while the user is selecting filter criteria, I want the main table (not visible) to update. The reason this is important is that I want t...

MFMailComposeViewController subject changes?

hi i am using apple's MFmailcomposer.in that when i type subject, the title of MFMailcomposer is also changing, how can i avoid it? ...

iPhone: Get Response From Finished Request [ASIHttpRequest]

Hello all. I am attempting to use ASIHttpRequest with the iPhone to get some information from a query-string based API on my site. Currently, I am in the planning stages of my design and I am kind of stuck on how I should proceed. I would like to have a class, that will handle all of the requests I will need. I plan on having differe...

USB Programming with Objective-C

Can anyone tell me how to program USB devices with Objective-C as an iPhone application? I want to access USB device contents through iPhone ...

How to integrate iPhone with other non iPhone devices using serial port?

Hi Guys, Anybody knows how to integrate iPhone with other non-iPhone devices using serial port? Please help me Thanks in advance Regards Jayaraj ...

SMS Application for iphone

Hi all , I am developing an SMS application for iphone.I need to send prefilled SMS to multiple users .I know it is not possible using IPhone SDK.Is there any way to do this using third party application.I saw the following application "http://www.zeepmobile.com/" but this needs each of the users to subscribe ,Is there any other applicat...

Implement animation in UIButton

I'm new to cocoa and iphone programming and I want to implement an animation in UIButton. For example, I create a custom UIButton with a square image. Then when I press that UIButton, the square image will flip. Note that the square image is the image of the UIButton. [UIButton setImage:[UIImage imageNamed:@"square.png"]]; ...

How to validate an IP address with regular expression in objective C

How to validate an IP address in objective C. ...

Problem with testing In App with sandbox test account

Hi, I created a test user account through the Manage User Accounts in iTunes Connect. When you create such an account you have to select a valid storefront for your account. I chose US Store. Now I signed out from the store in App Store settings on my device. Ran the application and tried to perform a purchase. I successfully login with...

REST authentication internal project (iPhone to grails app) using 2 legged oauth?

Hi, I'm creating an iPhone project, and will be communicating with a server via REST. I will be sending push notifications, initiated from another service. I would like to authenticate all communication from the iPhone to my server (e.g., synchronising notifications with the server as the push request is not guaranteed to go through) ...