iphone

Can I Upload video or audio from iPhone to web server?

I'm going to develop an application for uploading video & audio from iPhone to web server.I know how to upload to web server by HTTP Post or FTP,but I'm not sure whether I can access the audio files in the specific path like 【/private /var/ mobile/Media /iphone video Recorder】 on iPhone bacause Apple will rejects request that attemp to a...

Should we take iPhone 4-sized screenshots for app store submission?

So far I haven't been able to find the specifications for the iPhone screenshots we'll submit along with our application. (It's universal, so I'm also taking iPad screenshots.) Can they / should they be of iPhone 4 resolution (640x960 instead of 320x480)? ...

what's faster on iPhone? XML pList or JSON?

Assuming both XML plist and JSON are delivered over http, gzipped, which one will be processed faster on an iPhone? ...

Equivalent of [[NSWorkspace sharedWorkspace] runningApplications] for iphone / iOS?

I've been poring through Apple documentation for some time now but haven't found an iOS equivalent of the sharedWorkspace object that one can get from NSWorkspace in AppKit. Basically, I just want the runningApplications method from it. Can anyone point me in the right direction? ...

Is it possible to prevent the "flipping" in an iPhone website via JavaScript/jQuery?

I just don't want the site change orientation when iPhone change orientation. Is it possible? ...

attempting to initialize a mutable array, and then load it with images that are referenced by name

Howdy one and all, I am trying to write my first iOS app that is not out of a book (though I guess I am stitching things together like crazy....) At this point, I am attempting to initialize a mutable array, and then load it with images that are referenced by name (they are in with the project.) This is what I have so far, and based u...

UIBarButton font size

How can I change the size of the font in a UIBarButtonItem? ...

Why the UIScrollViewDelegate is not working?

I have a viewController called "HaveScrollController", and this is something like this: @interface HaveScrollController : UIViewController <UIScrollViewDelegate>{ IBOutlet UIScrollView *scrollView; IBOutlet UIView *firstView; IBOutlet UIView *secondView; IBOutlet UIView *thridView; IBOutlet UIView *fourthView; } @p...

Nested NSArray/NSDictionary Problem

I have an NSArray containing several NSDictionaries. I have an NSString containing an ID string. What I'm trying to do is iterate through the NSDictionaries until I find the object that matches the NSString. Then I want to return the entire NSDictionary. I'm fairly new to iPhone development, so I'm probably missing something obvious.....

How should I manage my NSTimer in a tabbar iPhone app?

I have a tabbar-based app with three tabs, one of them is a running clock. To animate the clock UI, I use an NSTimer that fires once a second. If the user will be switching in and out of the various tabs, how should I manage this timer? Can I just use scheduledTimerWithTimeInterval to create and schedule the timer when the app is fi...

What parameters are most suitable for encoding video on IPhone for optimal viewing and with minimal size?

Are there ways to reduce the size of the videos on the IPhone? This is mainly an encoding question. ...

When to retain in objective C?

I have been writing objective c for couple of weeks. However this question still bothers me a lot. Can anyone explain in pain english: When to retain an object? Thanks ...

UIImagePickerController not working on 4.0.2

Is anyone else having this problem? After upgrading to new xcode+sdk 4.0.2, the library image picker does show some built in images, but it never calls... - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo; Instead it calls... - (voi...

How to delete data in userdefaults in iPhone when apps are uninstalled?

The NSUserDefaults class provides us a convenient way to store/restore shared data. But I got a question: how to delete data when user uninstalls the app? As we all know, apps should clean all its data/files when it's deleted. Leaving anything that won't be used anymore shouldn't happen, isn't it? As far as I know, an app will never know...

Another Delegate for ASIHTTPRequest Asynchronous?

How can I create a new file containing just it's own delegate so that I can make an ASIHTTPRequest with its own asynchronous ending, and something easy enough where I just need to set [request setDelegate:self]; to something like [request setDelegate:AlternateDelegate]; and just add an include at the begining of the document to reference...

iPad Rotation and Keyboard pop up

I'm building an app that uses a UIView that contains a UIScrollView within it so that when the keyboard shows up, users can still scroll downwards to see the content within the view. It seems like I have gotten everything perfectly set up but when I rotate, everything goes completely unusable. The views are all out of place and I am unsu...

embed iphone contact on page click link

my question is analogous to the "mailto:[email protected]" type of link but is more specifically: if a phone number exists on a page and is viewed by a user on an iphone (phone number will appear as link), is there a way for that link to automatically (upon user clicking) ask the user if they want to add that number to the contact, and th...

iphone cocos2d CCSprite EXC_BAD_ACCESS

Friends i am new to cocos2d programming and Mac in general! I have noticed this EXC_BAD_ACCESS errors ruining most of my time... Take the following snippet of code from the Geek & Dad's tutorial... -(void) AddEnemyAtX:(int)x Y:(int)y { CCSprite *enemy1 = [CCSprite spriteWithFile:@"enemy1.png"]; enemy1.position = ccp(x,y); ...

How to response to vertical scroll only on iPhone?

I have a scrollViewAppDelegate, which is have a method called: - (void)scrollViewDidScroll:(UIScrollView *)scrollView How can I detect the vertical scroll only? thank you. ...

iPhone 3 v 4 v iPad ui. Raster vs vector

I'm the design guy on a new iPhone project and am curious on the eat practices for the up elements in the iPhone 3-4 dev. I know the dpi is different between the two and am curious how best to handle this with the dev guys. Do I need to make 2 of everything or do we need to figure how to make vectors of things like buttons , backgrounds ...