iphone

How to move a UITableViewCell within a UITableView

Hi there. I really wonder why this question hasn't popped up here so far. I have a UITableView with custom UITableViewCells in it. The Table itself is editable and contains deletable cells as well as insertable ones. if a cell is being deleted i want it to become insertable again AND it to move to the bottom of the table. any clues on...

iPhone CALayer Stacking Order

I'm using CALayers to draw to a UITableViewCell. I'm trying to figure out how layers are ordered with the content of the UITableViewCell. For instance: I add labels to the UITableViewCell in my cellForRow:atIndexPath method In the drawRect method of UITableViewCell I draw some content using the current context Also, in drawRect I add...

php code for geeting paramenter and image from the post request

Hi all can any one guide me how to get parameter specially image from the given post request. --0xKhTmLbOuNdArY Content-Disposition: form-data; name="source" lighttable --0xKhTmLbOuNdArY Content-Disposition: form-data; name="title" Google (The top search engine). --0xKhTmLbOuNdArY Content-Disposition: form-data; name="isbn" 97800772...

How to change the blue highlight color of a UITableViewCell?

hi, I'm wondering how to change the blue highlight/selection color of a UITableViewCell, any ideas? Thomas ...

touchEvent in UIScrollview?

i am using ScrollviewDelegate Protocol in viewcontroller.but i am using Custom UIView(UIImageview)in that custom view touch began, touch ended is working ,but touchMoved is not called.how can i achieve this one? ...

POST EXIF Data from iPhone

I am using Titanium Appcelerator for iPhone application development . My project requires the EXIF data from images stored in the gallery . I notice that whenever I send an image from the gallery using Titanium.Media.openPhotoGallery , the image headers are completely stripped , and I receive the file at 320 x 320 resolution only . I...

UIWebview :: Text :: HTML :: JS

hello, 1- i load a text from a txt file 2- i show it into a html "file" 3- problem : 3-a : this code works : i create my page by code and i insert my text myText = ... loaded from an array of texts ...; NSString *myDescriptionHTML = [NSString stringWithFormat:@"<html> \n" "<head> \n" "<style type=\"text/css\"> \n" "body {font-famil...

Sorting NSArray and returning NSArray?

I am just looking at sorting an NSArray of NSNumbers into numeric order but am a little unsure of the best way to go. By my way of thinking 001 and 002 are pretty comparable, so I would suspect either will do. For 003 I am not sure if returning NSMutableArray when the method expects NSArray is good practice, it works, but it feels awkwar...

Class to manage e-mail from iPhone

I'm working on an iPhone app that offers the user the opportunity to send an e-mail in 3 different places in the app, and for 3 different purposes. Rather than put the same code for showing the e-mail composer in 3 different view controllers, shouldn't I develop a separate E-mail class, create an instance, and then set properties such a...

Question related to Autorotation

I want to hide all textfield and move the keyboard upto the field i clicked there are 4 conditions for that 1>I press the return button 2>I doesn't press button 3>I rotate from portrait to landscape mode 4>I rotate from landscape to portrait mode ...

Simulated iphone app quits, whenever I turned on debugging.

I always build my app choosing with 'Build and run' (not 'build and debug'). While the app running smoothly I opt to put a breakpoint over a line. When I do this the simulated application suddenly quits with a message 'Loading debugger..,Debugging terminated'. ...Actually, this happens only on putting breakpoint on first time. Any he...

Why does UIWebKit throw a structuralComplexityContribution exception?

I've got a simple UIWebView in my iPhone app that's loading a XHTML document with some SGV embeded. This all works find on the desktop version of Safari, but it crashes in a UIWebView. Here is the Objective C: NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"]; NSData *fileData = [NSData dataWithContentsOf...

New line and returns ignored in setMessageBody

Am I doing something dumb? I can pre-fill and email ok but the "\r\n" is ignored in the emailBody: - (void) sendEventInEmail { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; NSString *emailSubject = [eventDictionary objectForKey:EVENT_NAME_KEY]; [pic...

check if(country == @"(null)" doesn't work

hi all, I got the problem that the if-statement doesn't work. After the first code line the variable contains the value "(null)", because the user who picked the contact from his iphone address book doesn't set the country key for this contact, so far so good. but if I check the variable, it won't be true, but the value is certainly "(...

NSFetchRequest / Predicate Question

I have two entities: Patient and Job. Patient has a to-many relationship to Job called 'jobs' and Job has a to-one relationship to Patient called 'patient'. Job has attributes called 'dueDate' (Date) and 'completed' (BOOL) and Patient has attributes 'firstName' and 'lastName' (both Strings). I am trying to create a fetch request / predi...

Is there a standard way to display the play controls that the iPhone iPod app uses?

I'm working on a music streaming app that needs play controls (skip, pause, play) just like the iPhone iPod app. I built my controls using a UIToolbar and the standard buttons. My UIToolbar controls look OK, but they're smaller than the ones that the iPod uses. Does anyone know if the iPod controls are custom graphics? Or maybe custo...

Creating a UITableView of the grouped style, but with square corners?

I want to keep the separated and not completely wide look of the grouped tableView, but I don't want the square corners. Is there any way to set/fake this? ...

How can I make my table cell UITextField editable when the table has entered 'edit' mode?

I have a simple table view which is editable. All I need the user to be able to do is edit the text field in the cell when they choose to edit the table. ...

iphone SDK buttons control views

Hi, all I'v just started to learn SDK. I have several questions. First. I will do the project about university APP. if u clike the app, then u can c several buttons on one page, then each button( eg: event, BBS,courses, map....) has specific function...each one connect to anohter view. Are they buttons on the main page? Second, ho...

EXC_BAD_ACCESS with NSAutoReleasePool

I am detaching a new thread [NSThread detachNewThreadSelector:@selector(loadAvatar) toTarget:self withObject:nil]; I am getting an EXC_BAD_ACCESS on STObject* st = [cellitem get:@"stobject"]; In my following method -(void)loadAvatar { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; STObject* st = [cellite...