cocoa-touch

I need to upload a video file to a web server iphone sdk

I need to upload a video file to a web server iphone sdk. It is just a quicktime movie. ...

How to check Gmail unread count with Cocoa Touch/Obj-C?

Is there an easy way to check a user's Gmail unread count from Cocoa Touch? I'm not interested in sending or reading mail messages. I just want to periodically poll for the unread count. If there is a way, could you please be as specific as possible in your answer? EDIT: I changed the question from asking about just Cocoa to Cocoa Touch...

Copying Multi-Dimensional NSMutableArray

I'm currently working on a Sudoku application, the numbers are stored within a Multi-Dimensional NSMutableArray of NSNumbers. I keep an array in my SudokuGridView, for displaying the numbers in the grid. When it comes time to solve the puzzle, I pass a [grid numberGrid] to a subclass of NSOperation I've created that solves the puzzle. T...

UIWebView with word-wrapping

i have a method which takes a string and converts it into HTML ,which i am displaying in webView .Now the problem is that i have fixed the width of webView to 200 and when words become larger they don't appear.So is there any way of wordwrapping? ...

Date Formatting in iphone

I am having a date as 2010-08-02 which is 2nd August 2010 now i want to dispaly this as Monday,8 August ,2010 Thanks for the help ...

crash when switching between tableviews using tab controller and MBProgressHUD

I have two tableviews. One loads when I select one tab, and the other loads when I select the other tab. I use MBProgressHUD to allow for quick switching between the tabs as I pull the tableview datasource from the web using Objective Resource and that can take a little bit. So I throw up a HUD progress indicator waiting for the data ...

how do I change auto-generated UIImageViews?

Hello, i create UIImageViews automatically via a for-loop: for (int i=0; i<anzahlzeilen; i++) { Anfanggrau = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Grauer-Balken.png"]]; Anfanggrau.frame = CGRectMake(0, [heightofrow intValue]*i,[breitescroller2 intValue],[heightofrow intValue]); [Inhalt1 addSubview:Anfanggr...

libcurl authentication on iphone?

Is there any way i can use libcurl library in Iphone to authenticate? ...

UIView event handling confusion

Hi, I'm trying to intercept touch events from a MKMapView. From various discussions around the internet I gathered that it is impossible to get the touch events received by MKMapView directly. So, I created a UIView subclass EventHandlingView that intercepts touch events. So, in my view controller, I first add the MKMapView instance as ...

Uploading Image to the server asynchronously (iphone)

How can I Upload an Image Asynchronously to the server in iphone...please help me in this regard....? ...

accessing the navigation controller from separate delegate class

Hi I am follwing a tutorial from a book and there the delegate and datasource are separated from the controller (MyViewController.m) [self setDataSource:[[MyViewDataSource alloc] [self setDelegate:[[MyViewDelegate alloc] for understanding, I now want to pop a controller from the delegate class (MyViewDelegate.m) - (void)tableView:(...

Cocoa Touch - Play an Animation Once

I have this code but it plays an animation on a loop and I only want it to play once. Any help? -(void)gameOver{ //blow up ship //animate explostion UIImage *firstBoom = [UIImage imageNamed:@"Explo_0.png"]; UIImageView *bigBoom = [[UIImageView alloc] initWithImage:firstBoom]; bigBoom.animationImages = [NSArray arrayWi...

Keyboard shortcuts in iOS?

Is it possible to capture command-key sequences in 3rd party iPad/iPhone apps? Long version: On my excellent journey of discovery vis-a-vis my new iPad with it's gleaming keyboard dock, I discovered, much to my joy, that when editing text in standard issue text views; commands ranging from ⌘C/⌘P for copy-paste and ^A, ^B, ^E and friend...

AVCaptureVideoPreviewLayer: taking a snapshot

I'm trying to emulate the animation seen in the default camera app, where a snapshot of the cameras viewfinder is animated into the corner of the apps display. The AVCaptureVideoPreviewLayer object that holds the key to solving this problem isn't very open to these requirements: trying to create a copy of it in a new layer with .. - (i...

action for selecting an index in an indexed uitableview

Hey, I have sectionIndexTitlesForTableView implemented in my controller class. when I selected an index, I want to have my custom action. Is there a way to do it? ...

UIFont and Diacriticals

I'm writing a iPhone app that needs to render i18n text that includes diacriticals (tildes, accents, etc.). Apple provides the UIFont class which can be used to get a given typeface/font-size combination's leading, ascent, descent, etc. The problem is that this information does not accurately reflect diacriticals. Specifically, diac...

Data modeling in CoreData, (folders and documents with many children, etc)

Hi, I have used CoreData a couple of times but data modeling was very simple. This time I am supposed to implement the following: User can create documents and folders (they don't have to be real folders/directories). Folders can contain documents or other folders Documents have: 1 Title, 1 Description and 8 children Each child a...

How to Prevent Multiple UIAlertView Alerts from Popping Up at Once?

My tabbar application has three tabs, each with its own navigational structure. Several of the views throughout my app load data via web service calls. These views register this notification in order to know when the app becomes active, so that they can reload the data: [[NSNotificationCenter defaultCenter] addObserver:self ...

NSFetchedResultsController crashes on every save operation

Even when I commented out every single activity within the delegate methods, every time I call an "managedobjectcontext save:nil" operation, the app crashes with different erros namely the following: (seems like a release problem but not sure where. I get EXC_BAD_ACCESS) #0 0x02813a93 in objc_msgSend #1 0xbfffd5b0 in ?? #2 0x0236c1b...

Get on screen coordinates of a certain UITableViewCell?

So, I have this UITableView. It's in an iPad application. Some of the cells have an accessory button on the right (the small round arrow). When that is pressed, I present a popover view where the user can select actions related to the table cell that they touched. So far, nothing of this is difficult or exceptional. But the popover view...