iphone

How to build a library for both iPhone simulator and device?

I want to build a static library for iphone. I want to give my users the .a library which they can use for both simulator test and device test. Do I have to build two library in simulator mode and device mode? Is there any way to build a single one that can be used for both platforms? ...

Give me some Links which provides Tutorial related to iphone samples code and pdf ebooks.

Hi!I am new in the iphone Development.I want some useful blogs,pdf files,urls,Tutorials address etc..whatever gives me the information about iphone Development hints.please give me some reference regarding iphone Development...Thanks in Advance... ...

App development: Always subclass, always load from NIBs - caveats?

This is Cocoa Touch (et al), iPhone, XCode only. After completing my first commercial iPhone app, I'm struggling a bit to find a way to start and expand an app from scratch which gives the most linear development (i.e., the least scrapping, re-write or re-organization of code, classes and resources) as app specs change and I learn more...

move UITableCell

Hello everyone I used codes below to move an UITableCell - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { NSMyObj *newObj=[myArray objectAtIndex:[fromIndexPath row]] ;//myArray is the array to store NSMyObj [myArray removeObjectAtIndex:[fromIn...

Select only video file using pickerview in iphone sdk

How to select only video file using pickerview in iphone sdk? ...

Running cocos2d with iPhone SDK 4 GM

I tried to build my (cocos2d 0.99.0-based) project with iPhone SDK 4 GM which was just released today. The reason is because I want to incorporate iAds in my apps. However I got 20 error messages which looks like errors in library calling. Can anyone tell me whether we can actually use cocos2d 0.99.0? I'm aware that 99.3 was released but...

creating a new distribution profile for a application after deleting it from iphone??

i created a distribution profile of my application,installed and tested it on my iphone and uploaded the binary to app store...due to some usual reasons apple rejected it and asked me to make a few changes...meanwhile i deleted the application from my iphone...now when i reinstall it says valid provisioning profile is not present so will...

What happens under the hood, when I access an attribute by KVC in Core Data?

I was reading that doing so will trigger KVC notifications. But how exactly does that look like? What does that mean? ...

Casting an NSString* to char?

How can I cast a NSString* into a char? EDIT: Thanks to Vladimir for getting me there! NSString *myString = @"HelloWorld"; const char *stringAsChar = [myString cStringUsingEncoding:[NSString defaultCStringEncoding]]; Hope this helps someone in the future! ...

If I wanted to write my own KVO-compliant setter method, would it look something like this?

- (void)setFirstName:(NSString*)firstNameValue { [self willChangeValueForKey:@"firstName"]; [firstName release]; firstName = firstNameValue; [firstName retain]; [self didChangeValueForKey:@"firstName"]; } Is that right? So the willChange... foobar didChange... block causes an KVO notification to fire? ...

make an UIPageControl visible in an UIScrollView

hi,my real problem that i want to make my UIpagecontrol 's postion higher than an UISegementedControl that i use in my view but this wasn't possible for me ,because even i custom this by the IB always my UIPageControl appear in the foot of my view . So i used to make it in the ScrollView but it doesn't appear! how should i proceed ? No...

Control ( UIButton, UILable) Hides when the Video plays Again on iPhone!

Hi, I have displayed UIButton on top of Playing Movie using this code. NSArray *windows = [[UIApplication sharedApplication] windows]; if ([windows count] > 1) { // Locate the movie player window UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow]; // Add our overlay view to the movie player's subview...

bearing in iphone

i want to make a compass bearing in iphone. like there will be a circle in the corner and it will have 'v' shape drawn inside. so when i start my camera and move than i shlould see the markers... but my first question is a) how to make that circle in the corner whose center will be my current location. so now if i find any point at part...

Processing a method after the view has loaded..

Hi ! I have implemented a subview which is supposed to load immediately when I click a button in the parent view. After loading the subview(which is basically holding an activityindicator), the program is supposed to process a method(which gets data from a server, so takes time) in it. However, I am unable to do it. What happens now i...

how to show video or movie file into UIImagePickerController?

I am using UIImagePickerController that gives user to be able select an existing photo or use the camera to take an image at that time. And i can show that image in my application with UIImageView. Now i want to use this ability for movies also. But i couldn't find any way to show the selected movie as an image in my app, just like the ...

NSMutableArray Vs Stack

I am developing 2D game for iphone in Objectice-C.In this project I need to use stack, I can do it using STL(Standard template library) stacks or NSMutableArray, since this stack is widely used in the game which one is more efficient in terms of runtime speed and memory use? @interface CarElement : NSObject { std::stack<myElement*> *m...

iphone app acceptance criteria

Is there documentation on what Apple will accept and not accept when submitting an app, or is it trial and error? ...

Best approach to decompressing individual files by relative path inside zip archive

We're looking for a solution to keep thousands of html/image assets inside a .zip archive, and decompressing single files on-demand as a local web server needs access? More than a couple hundred files or so on the iPhone OS file system absolute kills the backup process, and is probably not advisable for the flash disk either. Solutions ...

How to convert NSDate into unix timestamp iphone sdk

Hi all, How to convert an NSDate into Unix timestamp? I've read many posts which do the reverse. But I'm not finding anything related to my question. Thanx in advance. ...

Can we get the information of customers who have purchased our application from app store ?

Can we get information of all customers like customer's name, customer's email or other information related with customer who have purchased our application from app store ??? ...