iphone

Multi-player server for iPhone application, using device as socket server.

I'm working on a multiplayer iPhone application that allows up to 6 users to connect and play in "real time." I've been looking at hosted and non-hosted socket servers (SmartFox, ElectroServer, Photon/Neutron, ProjectDarkstar) and I'm wondering if anyone has any recommendations for services or implementation? Anyone have any idea of what...

Load PDF into UIImage or UIImageView?

Hi everybody! This is my first ever question on stackoverflow. I'm trying to load a PDF file stored in Resources into a UIImage/UIImageView object in the iPhone SDK. Is this at all possible without converting the PDF to an image? If not, what are the member functions for converting a PDF into a PNG? I would really prefer to preserve the...

iPhone SDK - How to scroll a UITableView programmatically with animation?

How would I scroll a UITableView to a specific position with an animation? Currently I'm using this code to jump to a position: //tableController -> viewDidLoad [self.tableView reloadData]; NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:0]; [self.tableView scrollToRowAtIndexPath:indexPath ...

Importing multiple records from sqlite db iphone sdk

I need some help! Please. I am trying to develop a very very simple application, basically just a simple book reader. Ideally, the first view would be a uitableview listing the names of chapters, then selecting the row would take you to a detail view that has the chapter which is broken up into segments. Note the segments are actually th...

Text input box like the SMS app on the iPhone

I am having a terrible time trying to get an input box like the one in the SMS app. Can anyone offer some guidance on how to build one of these and make it look good? I need an input box that is shaped nicely like the UITextfield but will stretch vertically when typing. I assume that I need to calculate width of the text and stretch ...

iPhone Store Kit "Cannot connect to iTunes Store"

Hi, I am working on adding In-App purchases to my app. I am able to receive the productsRequest:didReceiveResponse method, and receive the array of products. My problem arises when I add a SKPayment to the SKPaymentQueue. After I add the product to the queue, in the paymentQueue:updatedTransactions method the transactions always have ...

Using navigation controller of superview

Hi, I've made a custom view to which I add a custom button. This custom view goes as a subview to yet another view (Kal calendar for iphone) that I push into a navigation controller. Now the button in my custom view is connected to an IBAction in which I am not able to call upon the self.navigationController to pop the current view from...

Is there a way that I can make a program like GLPaint using CGContext?

I want to make a program similar to GLPaint using CGContext that is very smooth and easy to put images behind. I understand that GLPaint has no allowance for putting an Image behind the painting canvas, rather than having just a black one. ...

How to add a spinner to the view before doing a computationally intense task

I have a UITableViewController and when I push a particular view onto the stack it takes forever so I wanted to add a spinner to the cell before moving along. The problem I'm having is that the spinner gets added after the new view gets pushed onto the controller stack. But I thought that messages were synchronous? So how can I make thi...

How would I draw this using CGContext

I want to draw this in my view to draw this line, I have everything I need to make a basic line, but am just not good at drawing, I did in fact try to do this, but just cannot get it to work correctly. ...

facebook connect on iphone - security question

I have a question regarding Facebook Connect's security model. How hard would it be for a hacker to write an iPhone app which uses FB Connect, but also captures the username / password that is entered by a user on the FB Connect login dialog box? From what I can think of, one could look at the UITextField in the UIWindow and be able to c...

I cant get UIScrollView and UIAccelerometer to play nice, even with threading

problem is, everytime i go into my application and scroll around inside the scrollview, everything else in the program is completely useless, and tills I stops me scrolling, the accelerometer, and not to mention everything else wont do a thing, if anyone has any idea how i can get around said problem, id be much obliged, yes I would. an...

Alphabetize Arabic and Japanese text that is in Unicode?

Does anyone have any code for alphabetizing Arabic and Japanese text that is in Unicode? If the code was in ruby that would be great. ...

When a UITabBaritem is pressed UINavigation is set to root

I have a UITabBar Controller that has a UINavigation for each of the UITabBaritems. The problem is that if you drill down in a navigation then press the UITabBaritem you are currently in it goes to the first view that has been pushed on the stack. My question is how would i change it so that this feature is disabled or changed to the 2...

iphone ViewDidAppear in SubViews?

I have a View "A", which loads a subview "B" which loads a subview "C" Why does the ViewDidAppear event fire for "A" but not for "B" or "C" ViewDidLoad does fire for A,B,C ...

iphone navigationController autoloading to three level

i create i navigationController project name:autoload, then create two uiviewContorller named: second,three i want the process is load rootView the load second in method:"viewDidLoad" then auto load three in method"viewdidload", here is the code: rootView: - (void)viewDidLoad { self.title = @"first"; Second *second = [[Secon...

Utility Application and View-Based application

Hi everybody, I'm new to xcode and the iphone sdk. I've been working with the view-based application for quite a while, and I was wondering if a utility application and a view based application involved the same type of coding. Can someone point out the difference for me? Thanks ...

Count method of subclass of NSMutableArray crashes app

This seems to be a common problem, but I can't figure out anything from the answers I've seen so far. I have an iPhone app that uses a subclass of NSMutableArray to store objects, plus some additional properties. The subclass is skhCustomArray. The subclass initializes fine, with no objects in the skhCustomArray, and I assign it to th...

Can I easily build iPhone apps for my customers without having them signup with the Apple Developer Program?

I do some work for a company and we have an idea. What we'd like to do is throw in a simple iPhone app if they purchase with our company. We'd build the app, but the new business would sell it on the Apple Store. Is this possible without having the business go through all the hoops of signing up for the Apple Developer Program? To be...

Protocols in iPhone SDK

Hi All, I am confused about the @protocol----@end in iphone, what actually is it meant for. Why we are using this. Is it a functionality to provide additional methods to a class..? i am not sure. Please help me. Thanks, Shibin ...