iphone

iPhone playing video in custom view: Example Code Please?

I'm wanting to put together an application which plays video fullscreen with an interface overlaying it that basically chooses the video that is played underneath it (think 'Gym Babes' but nowhere near as risqé!). I don't wish to use private headers so MPMoviePlayerController is out of the question. I've been digging through stackoverfl...

iPhone TCP/IP Socket Server/Client Program

I have read a lot of questions regarding this subject on this website however they didn't quiet answer my question. If you can't be ### about my goal or background skip to the question. My Goal Is to build a server that can run on Mac OS X 10.4+ and later, port it to Windows XP/Vista (no idea how to do that yet, but that's a problem f...

query about accessing the ringtone sync functionality of iphone

hello StackOverflowers, i came across this post where Reader Comment #16 mentions: "The ringtone syncing functionality is ALREADY inside the iPhone, it just needs to be accessed" I understand that you can transfer your music files,ringtones, videos all by syncing your iphone with iTunes. But what does the above mentioned statement i...

Simulating the back button on the UINavigationController on the iPhone

I currently have a TableView inside a NavigationController where when a item is selected the following code is ran: DetailViewController *DetailViewController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]]; [self.navigationController pushViewController:DetailViewController animated:YES]; [De...

Check type of network failure on iPhone/iPod

Hello All: I have an application which uses a web service to get data. Before getting data from the web service I check for network availability on the device by using the approach explained in "Reachabilty". But what it does it ping a server and depending upon the response it gives the status. But in my application I want to show diffe...

obtaining objective c nsstring from c char[]

code below. i'm tryind to obtain string answers like "a1", "c4" this is what i'm having instead of "a1": "adresse finale: \340}00\214" with this prinf: printf("\nadresse finale: %s",[self convertCGPointToSquareAdress:self.frame.origin]); the method is: -(NSString *) convertCGPointToSquareAdress:(CGPoint ) point{ int x= point.x /...

Open mail app on firmware 3.1

Hi. I would like to make an app to open the native app mail on my iPhone. The problem is that I'm able to do it but the mail app opens on compose a new blank Message, and not on the Main view. ...

How many halfscreen images can I add to an animated UIImageView before performance would start to suck?

Does anyone have experience with this? I didn't try because I have no appropriate imagery for this, right now. But I wonder if the iPod touch is capable of displaying a fluid, movie-like animation out of fullscreen images (300 x 270)? I fear performance would suck dramatically. ...

Is it possible to play a movie file in a UIView layer?

If yes, what movie format has best performance? And how would a simple setup look like? I have some views, and I want to play a short movie inside a view (not fullscreen). The movie is about 5 seconds long. ...

What shows better performance? Playing a movie clip, or animating an image sequence with UIImageView?

Specs: about 320 x 270 px, 5 seconds. I don't know exactly how many images needed for a fluid animation, but let's assume 30. What would be the best way to playback this? As a movie file in some kind of quicktime view (if available), or as an animated image sequence with UIImageView? I'm not sure but I believe loading 30 images per seco...

Fetch object by property in Core Data

In my iPhone project, I want to write a function that checks wether there's an object in my Core Data ManagedObjectContext with a given value for a certain property, say some_property. If there's already an object with some_property == 12, I want the function to return the object, otherwise, I want to create the object, or at least retu...

Perform synchronized scrolling with two scroll views

Hi All, I have two scrollers in same view(like 2 vertical scrollers). I want to do something like, when i scroll one scroller the another scroll should also move by the same amount and in same direction as first one. Is there any way i can achieve this??? Any sample will be really appreciated. Thanks in Advance. Vishal. ...

NSArray becomes NSCFArray when passed

I have a method that receives many different kinds of objects and decides what to do with them: -(void)performAction:(NSObject *)myAction withItem:(Item *)myItem { actionCount = -1; NSLog(@"-- NEW ACTION ARRAY --"); if ([myAction isMemberOfClass:[Look class]]) { currentActionArray = [self createLookArray:(Look *)myAction item:myItem];...

Xcode building and resources folders

Hi there, I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping structure. This is fine for most things, however there is a set of files that I need to have structured in folder in the app's resources folder. At the moment,...

Is it possible to dynamically create a UITextView?

For example: an UITextView will be created when a touch event happens. How to do it? Thanks ...

Is it possible to expand the table view's cell at run time ?

Hello all , I am developing an iphone application . In which i want to show some detailing by the means of expansion of that cell (i.e. by the means of touching the cell it should animate and exapnd and show the details) and in that show the details related to selected row. ...

UITextView adding text to new line

I would like to add new lines of text to my UITextView for my iPhone app. Basically my textview starts with a single line, and as app advances, new lines are added. However I can add only to the end or beginning of the existing text. How can I make such an entry into a new line. Can I manually send \n to the textview.text at a calculated...

iPhone: Portrait to Landscape mode question?

I have one UIButton. I put one image on that. When I click on that image, I get one view. In that view, there is one UIButton and UIImageview. How can I move this view from Portrait to Landscape mode? ...

How to display an NSSet in a UITableView?

How would you proceed to display the content of an NSSet in a UITableView? As you know, the table view will ask for the element at a given row, but since the NSSet elements aren't ordered, this doesn't mix well. My current solution is to iterate through the NSSet until I reach the element at a given index, but this really doesn't feel ...

Better way to check an area touched rather than just a rectangle

Just wondering if there was another way to check a touched area using a polygon of a particular shape rather than just using CGRectMake. Here's the same code for this example: CGPoint location = [[Director sharedDirector] convertCoordinate: [touch locationInView: [touch view]]]; CGRect mySurface = CGRectMake(x, y, temp.contentSize.widt...