iphone

Exception with TabBar in iPhone SDK

Hello! A friend gave me a small tutorial to iPhone programming yesterday. I then tried to make a small program with two views which I can switch using a TabBar: One with a blue background, one with a red one. It displays them just fine, but when I run it (in the Simulator) and click on a Tab, it crashed with : "Terminating app due ...

a question related to apple push notification service

hi, Friends In, testing of Apple Push Notification Service ,server sends me response .k that is not the problem problem is that when server sends response to me ,at that time pop up comes through Operating system(OS).how to handle it there are 2 questions related to it 1>if pop up comes through OS ,there are 2 options 1>press YES and 2...

NSNotificationCenter vs delegation( using protocols )?

What are the pros and cons of each of them? Where should I use them specifically? ...

Use of smugmug API

How to use smugmug API's in any app for having thumbnail imageView in JSON framework ...

iPhone gui message from perl/shell-script possible?

I want to write a perlscript on my iPhone that is able to give me a heads up at certain points so I'm wondering how I would go about doing that. Is there a way to get a message through the gui from a script running in the background? I've been looking without much luck. I had a thought about inserting a fake sms into the sqlite db as a l...

Passing a C++ object with an Objective-C (Cocoa) event (performSelector)

How to pass a C++ object with the performSelector method? This method only allows you to pass 'objc_object*' objects, I can't cast them. I could build a wrapper, but I don't know the overall superclass for all C++ objects, so I don't know how I could build a generic wrapper (I don't want specific knowledge about the object in the wrapper...

to distribute iPhone App for an commercial software-product

Hello, if you have a product and would like to have an iPhone Application for this commercial product (this application just communicates with web service and presents some data) how can you distribute this iPhone-App by customers of this product? only about Apple-Store? Would Apple allow to store there an application for the commercia...

Existing Website-Accounts with a monthly fee, attached to a (free)iphone app? Rejection?

An already running Website which has a medium number of paying users (the customers pay 10$ per month for the account) asked me if I am willing to program an iphone app which helps extending the functionality of the website. They most probably want to give the application away for free - they think, that the iphone app will be a strong a...

Problem initializing an object with init in Objective-C

Hello, I have an object that i intalize it's propertis with call to an init function, it works fine, when i tried to add another object and intalize it the first object didn't get the properites, how do i initalize it to more then one object with diffrent or the same properties? - (void)viewDidLoad { pic1 = [[peopleAccel alloc]...

How many 1024*1024 pngs can be load in openGL for iphone without having the app crash in the device ? ?

Approximately what's the maximum number of 1024x1024 32 bit .pngs which can be loaded at the same time with openGL in iphone ?, without risk of the app crashing. And .pvr ? a much higher number ? If I need a huge amount of textures in my game, is healthy to keep loading and calling dealloc to not overload the memory with all the text...

How to convert collection of transport stream files to one file for later retrieval on iphone.

Saving collection of transport stream files (.ts). This is collection of .ts files, I got them using segmenter. I am using them for HTTP Live Streaming. Streaming is working fine. Could anyone assist me on how to convert these .ts files to a normal single file (.mp4 or .mov iphone support formats) programmatically. This will give th...

Make text selectable in html pages looking like iPhone forms

I am working on an application than needs to create pages looking like this: http://iui-js.appspot.com/samples/music/music.html#_usage The problem I have is that, just like in the page linked above, the values are not selectable neither with iSafari nor with the desktop version of Safari. I need to be able to select and copy the val...

UITableViewCell reorganize subviews when the 'delete' button appears

Hi everyone! Does anyone knows any method to resize subviews(I.E. UILabelView) when Delete button appears. There could be two methods: 1.Capture a notification, if there's one, when the button appears in the UITableViewCell 2.Tell the framework re-arange it automatically. ...

Scroll tableview without user noticing

I need to scroll a tableview on initial load of my RootController. The problem is that I have to wait until cellForRowAtIndexPath completes before I can do anything using scrollToRowAtIndexPath. cellForRowAtIndexPath seems to be the last event for me to hook into after the table has loaded. Because the view has already loaded, the tab...

How do I get 'iPhone Device 2.2.1' listed as one of my active SDKs in xcode?

I just installed xcode on a snow leopard machine. I am wanting to compile and iPhone app with the 2.2.1 SDK. Under Project > Edit Project Settings I have the option for the base SDK to be "iPhone Device 2.2.1" but I'm not getting that setting as an option for my Active SDK... What do I need to do so I can get iPhone Device 2.2.1 listed...

iPhone coding - How to add a rotation to the touch event?

Ho can i add a rotation to the object addition to the dragging ? i dosen't have to be multi touch. code: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; currentTouch = [touch locationInView:self.view]; CGFloat dx = currentTouch.x - carMove.position.x; CGFloat dy =...

How to add JSON files to my project.

I am writing a twitter client program. They have given JASON files to include in my project. But I am confused with how to add them into my project. And actually what the JASON files do ? ...

Native Flash on mobile platforms?

Does anyone know if Flash will be able to run independent from the browser? I mean native apps in Flash, not just the player in a browser. The Symbian OS can do that, however I have yet to find an article which explicitly states what will become available in the case of the iPhone and the Android platform. I am not asking about dates, as...

Minimum sensible button size on iPhone

Hi all, I'm designing an iPhone app that features a rather large set of onscreen rounded rect buttons. Given finger-based touchscreen UI, what do you think would be the smallest sensible button size? I need to fit as many of them as I can in the viewport without compromising the usability too much. Maybe there's an Apple-recommended min...

How to programmatically determine if DRM was removed from iPhone application?

How can I determine if DRM was removed from iPhone application bundle (to protect it from piracy)? ...