iphone

MFMailComposeViewController programmatically call the "Send" button

Hi, I am trying to send an automatic email with an UIImage as an attachment when user presses 'Send Photo' button. Is there any way that we can programmatically call the "Send" button in the MFMailComposeViewController. If not could you please suggest me some other method of doing this. Any help will be appreciated. Thanx in advance. ...

How to popup a view from bottom?

When click a button,I want to popup a view form bottom,like this! Any help is welcome,thanks. ...

Where can I find the complete character set available for iPhone Contacts notes?

Where can I find the complete character set available for iPhone Contacts notes? ...

iPhone UIScrollView - How to animate scrolling with steady contents?

Hi all, I'm wondering if anyone knows how to prevent the contents of a uiscrollview from moving unsteadily when scrolling manually by setting the content offset. When scrolling by touch the text remains clear and steady. I would like to recreate this by animating with the animated option set to false. I'm using a timer to scroll at a...

Convert NSMutableArray to string and back

Hello, in my current project I'm facing the following problem: The app needs to exchange data with my server, which are stored inside a NSMutableArray on the iPhone. The array holds NSString, NSData and CGPoint values. Now, I thought the easiest way to achieve this, was to convert the array into a properly formatted string, send it t...

"Filtering" Cells in a UITableView. Multiple Views? Subviews?

(First question related to iPhone development, so apologies for sounding off-track.) I'm creating a view that has a few things; a UITabBarController controlling 3 UITableViews. Two of these TableViews are filtered versions of the 3rd. All of them will be making a JSON call (still working on that) to retrieve a list of objects. So, beca...

Vertical scroll is not active when a UITableView is put into a UIScrollView+PageControl

Hi all, I am trying to simulate a TabStrip using UIScrollView+PageControl. Inside each Tab/Page (UIView is used here), I've put a UITableView inside. The outer scroll view & pageControl work perfect, I can swipe fom one page to the next. Now the problem iswhen there are more entries in the UITableView, the vertical scrolling of the inne...

CALayer and Quartz Transparency

I have a CALayer subclass. I have overridden the drawInContext method. I want the majority of my layer to be transparent except a few areas. I'm using the layer as a menu and I want the icons and labels on the menu to be opaque. Is it possible to have a CALayer's sublayers be opaque if the super CALayer is transparent? Is it possi...

iPhone: save log files and transfer to PC

Hi, In my iPhone application, there is a requirement to save a few log files in the phone(files are run-time generated). Then I have to copy/transfer the files into the pc. Can anyone suggest the best way to do this. Pls consider this as a newbee question. Thanks in advance.. ~Dhanesh ...

Encoded nsstring becomes invalid, "normal" nsstring remains

I'm running into a problem with a string that contains encoded characters. Specifically, if the string has encoded characters it eventually becomes invalid while a "normal" string will not. in the .h file: @interface DirViewController : TTThumbsViewController <UIActionSheetDelegate,UINavigationControllerDelegate,UIImagePickerControlle...

Picker view wont rotate- iPhone

hi, I am making a booking page. I have included 3 pickers in it. I have included all the delegates required for the pickers to work but it wont rotate. I have enabled user interaction and multitouch in the nib file. Here is my code. Please help me. :( @interface ChooseContactsFrom : UIViewController { IBOutlet UIPickerView *statePick...

UIwebview delays loading

Hi, I have Login screen and second view which will be shown after login. On second view I have UIWebview which loads the url. After login first it shows the empty view and slowly it loads the url. I want to show login screen with wait cursor, until the uiwebview loads the url and then want show that screen. Can any body please provid...

To store images from UIGetScreenImage() in NSMutable Array

I'm getting images from UIGetScreenImage() and storing directly in mutable array like:- image = [UIImage imageWithScreenContents]; [array addObject:image]; [image release]; I've set this code in timer so I cant use UIImagePNGRepresentation() to store as NSData as it reduces the performance. I want to use this array directly after some...

Button Application- iPhone Application

I am a meganoob in iPhone Application programming. All I want to do is make an application with a single button. When you press the button, it plays an audio file. The button is just two images, one for the normal state and one for the pressed state. I have no clue how to get from point A to point B, it seems so straightforward in web...

How to create a Gridview in iPhone programatically?

Hi, I want to create a Grid view with images in iPhone programatically. Pls do give me some example for it? ...

objective c coding guidelines

Is there any pdf which tells about coding guidelines in objective C. For Example... 1. Breaking the function names - checkIfHitTheTrack. 2. member variables must be like - mVariableName. 3. Giving better names to subclass - ? Please share the related links... ...

Private api's to access the sms, calendar, notes from iPhone

HI, Do anyone has idea of specific private api's required for accessing the sms, calendar, notes, photos, videos, and all the datas stored internally from the iPhone. I dont want to jailbreak my device. So i cant access their respective .db files . Any help will be greatly appreciated. Best Regards, Mohammed Saiq. ...

How to display "number of items" in a tableview?

Hi, What's the best way to implement showing a number in a small circle on a UITableView row, much like is seen on the 'Inbox' row in the image below? Thanks, ...

Is there any Apis to displayed the iWork files in iPhone?

I want to display some iWork file in iphone? Is there any apis to help to display it? ...

How to add lowercase field to NSURLRequest header field?

I'm getting pretty frustrated figuring out how to add a lowercase header field to an NSMutableURLRequest. NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:MyURLString]]; [urlRequest setValue:@"aValue" forHTTPHeaderField:@"field"]; In the example above, "field" gets switched to "Field," since...