iphone

Adding data to 2 Sections of UITableView from SINGLE nsmutablearray

Hi guys, I wanted to know how to list data in tableView in different sections BUT from a single datasource. All examples i saw had number of arrays = number of sections. What i want is suppose I have a 3d nsmutableArray. If dArray.Id = 1 { //add to first section of UITableView } else add to Section 2 of UITableView. Its probably doo...

how to get all images from imagelibrary in iphone?

i want to get all images from imagelibrary either using imagepickercontroller or any other way(like programatically).... ...

How to add an UIViewController's view as subview

I have a ViewController which controls many subviews. When I click one of the buttons I initialize another viewcontroller and show it's view as the subview of this view. However the subview exceeds the bounds of the frame for subview and infact fills the entire screen. What could be wrong? I presume the problem is that UIViewController'...

What is the correct way to "gang" together and keep in sync a pair os UIScrollViews?

I would like to have a pair of scrollviews - call them scrollA and scrollB - on the screen that work in parallel. When the user scroll/zooms scrollA scrollB mimics that behavior, zooming and panning identically. And vice versa. Is this possible? Thanks in advance. Cheers, Doug ...

Is there an iPod SDK?

Is it possible to write applications for the iPod and iPod Nano platforms, i.e. not iPhone / iPod Touch? Some iPod 'Click Wheel' games are available on iTunes, but I can't find any developer documentation. ...

iPhone Feedback Service with PHP

HI All, Has anybody been able to extract the device tokens from the binary data that iPhone APNS feedback service returns using PHP? I am looking for something similar to what is been implementented using python here http://www.google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#m5eOMDWiKUs/APNSWrapper/%5F%5Finit%5F%5F.py&q=f...

What iPhone push notification services are out there? (Hosted services, not the APNS)

I'm looking to avoid running my own server all the time when dealing with Apple's push notification service. From my understanding, I need a constant connection to the APNS which I can't afford... I was planning on releasing my app for 0.99 or for free and I really don't want to spend a lot of money elsewhere. After a bit of googling ...

When I tap the first cell in my tableview didSelectRowAtIndexPath is not triggered

When I tap the first cell in my tableview "didSelectRowAtIndexPath" is not triggered... Has anyone seem this and/or have any clue as to why this happens? All the other cells in my table work just fine and I put a breakpoint in my code in "didSelectRowAtIndexPath" the app does not go into that code if the first cell is tapped but will g...

caching the webcontent ( images ) on the iPhone

I have a question concerning the caching of webcontent. I've created a UIWebview component Code: NSString *urlAddress = @"http://192.168.55.101/~test/mobile/iphone/ads/v0.1/"; //URL OBJECT footer UIWebView *aWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320 , 100)]; NSURL *url = [NSURL URLWithString:urlAddress]; ...

My app closes without any warning or error message.

Hi. I'm programming an puzzle game for iPhone using openGL. There Is one very weird "bug" ( I'm not sure what It is)... whenever I touch the screen a great number of times in a short period of time my app closes, without giving a warning or error. What could be the cause ?, I guess It has something to do with the memory, but I would...

Centered images are blurry

I' have a lot of png's with different sizes, and i want to load them into a table. I have this code: charImage.image = [self imageForId:g.charId glyphNr:g.glyphNr]; [charImage sizeToFit]; //charImage.contentMode = UIViewContentModeCenter; charImage.center = CGPointMake(30, 23); Everything works fine except that my pngs are blurry. If ...

UIScrollView bug? float foo = scrollview.zoomScale crashes the app.

In method viewForZoomingInScrollView: of the delegate to my scrollview I do the seemingly innocent: // scrollView is the parameter passed to this method float foo = scrollView.zoomScale Boom! Crash, hello gdb. Is this a known bug? Should I submit it? Cheers, Doug ...

how to erase some portion of uiimageview's image in iphone?

i have a view with uimageview and an image set to it. i want to erase image as something like we do in photoshop with an eraser.how do i achieve this.also how do i undo erase??? ...

Securing WCF REST service for use with iPhone application

Hi all, I've a created a simple WCF REST service which I intend to consume from an iPhone application. The service works fine but now I'd like to secure it. In my test enviornment (IIS on Windows 7) I already setup a self signed certificate using makecert.exe. I also overridden the validate() method so I can use a custom username & pa...

iPhone Core Data: Initializing Managed Object without a context

Hello. Is there a way to initialize a managed object outside of a context. I'm basically trying to alloc/init a Managed Object outside of a context first, then figure out if I really want to insert the object, and then inject it into the datastore using an existing managed object context. Is this possible, or does it go against the inte...

How to remove all the view along with rootView from UINavigationController in iPhone

Hello all, I have an UIView added in the main window with a controller. On clik of a button on this view I want to load a UINavigationController which will migrate to multiple views pushing them one by one on stack. Now what I want to do is when user reaches at the end of views, in the last view I have a done button. ON clik of this but...

touchesBegan at the ViewController

Is it possible to know which of the several controls contained in my ViewController's main view is affected by the present touch event? ...

Monotouch or Titanium for rapid application development on IPhone?

As a .Net developer I always dreamed for the possibility to develop with my existing skills (c#) applications for the Iphone. Both programs require a Mac and the Iphone Sdk installed. Appcelerator Titanium was the first app I tried and it is based on exposing some Iphone native api to javascript so that they can be called using that la...

Iphone open gl es application and autorelease pool

So I am creating my first opengl es application on the iphone. I want to autorelease an object and that was around the time I noticed that I can't seem to find the location of the autorelease pool. 1) Is the autorelease pool already created for me in an iphone opengl es application? 2) If it is already created for me how often is the ...

Computing a UIImage to be saved to the photo album

I basically want to automatically create a tiled image from a bunch of source images, and then save that to the user's photo album. I'm not having any success drawing a bunch of small UIImage's into one big UIImage. What's the best way to accomplish this? Currently I'm using UIGraphicsBeginImageContext() and [UIImage drawAtPoint], etc. A...