iphone

Attaching plain text file using MFMailComposer in iPhone SDK

I've been trying to use MFMailComposer to send a text file with encrypted data within. The problem is my attachment never shows up when when the email arrives in the inbox. Instead, a line of "<br/><br/>" is always present. I'm assuming is has something to do with the mime type and the receivers mail server not know how to read the data ...

iphone how do I detect my app was pushed to background ?

I had written an app for iPhone 3. The app calls safari and while it does that it exits out. Next time when it is called it loads from scratch. But with iPhone 4 this behavior has changed. I find that my app was in the same where I left it before I opened safari. How do I exit my app while it is sent to background ? (iPhone 3 like beha...

iPhone App Crashing during navigation

I have a tough problem (tough for me since I'm a newb.). I have a table view app that I'm working on. It starts with a table and you navigate down to a view controller. In that view controller I'm using some sample code hooked into a button that will add a contact to the iPhone address book. My problem is when the user navigates back...

Upgrading Existing XCode iPhone Project to 3.2.3

Hi, I upgraded xcode to 3.2.3 and loaded an existing project I had created with a prior version of xcode. It seems to compile fine as I have set up the correct deployment target and base sdk. When I look under Groups & Files, the Framework group, the Framework files are red and are pointing to the old framework files which don't exist...

How to change text Cancel button Searchbar of iPhone in Titanium?

Hi guys, When I set the value 'true' to showCancel property in the method Titanium.UI.createSearchBar. It displays me the cancel button, but I would like to customize that button text to Go or anything else. How do I do that? Please give me suggestions. Thanks you so much. ...

How to use Array of C language with Objective-C

Hi. I'm using Objective-C language. But I don't know how to use c with Objective-C. Ex) This is Function method. - ( ?? ) function{ unsigned int first = .. unsigned int second = .. unsigned int third = .. int infoData = {first,second,third}; return infoData; } How to fill in parenthesis. I don't use NSArray. Please help me. ...

Detect missing 'commitAnimations'

Hi Something weird is happening to my views all of a sudden (resizing a UITableView results in strange flying header sections) and I have a feeling I'm missing a '[UIVIew commitAnimations]' somewhere in code. When I add this line into 'viewForHeaderInSection', the weird behavior stops. Question is, how can I find animation blocks with ...

will an iphone app built with Base SDK 3.2 be rejected by apple?

Hi, I've recently updated xcode to 3.2 and to the iPhone SDK 4.0. I've submuitted the binary and my app is "waiting for review". However, my base SDK was set to iPhone Device 3.2 and I have been reading rumours that apps not submitted with iPhone SDK4.0 wont be approved. Is this correct? My deployment target is 3.0, but BASE SDK is iPHon...

How to see incoming txts on iPhone

Possible Duplicate: iOS 4 has an In-App SMS SDK for sending messages, but is there a way to have your App receive incoming SMS messages? I want to be able to use incoming texts in my app. Is there a way to get the info from a new text programmatically? ...

Crazy problem when comparing NSInteger to int

I have a crazy problem when comparing an NSInteger to int, as follows: NSInteger count = [dictionary count]; if (count == 0) { // Do something } else { // Do something } When the count is zero, the snipped code in the if clause is run, but when the count number is changed, the snipped code in the if clause is not run (this is...

Access to location arrow in SDK

Simple question, the little arrow that is used for the Apple's find your current location icon. Do you have access to that icon in the SDK as a UIBarButtonSystemItem or something similar? Looked through the doco and its not a UIBarButtonSystemItem as far as I could see. ...

How to show textfield above keyboard for all interface orientations

Hi all , In my iPhone app i used the following code to lift the view in order to show the textfield above the keyboard. My application support all four interface orientations. I use the following code to lift the view. Problem here is that it only works for portrait orientation. Is there any way to implement the correct lifting in ...

Instruments chart for iphone

i have a doubt ..i clicked on leaks and then i can see graph now should i run application to check memory leak or it will do on its own?? and the moment my apps start after 3 secs i can see blur bar of height 0.5 that keep going?? so what should i do?? is that leak permanent (cause blue bar is static ?? but my app is running good ...

color array handling with openGL

Hi guys I am developing an ipad app with openGL. In my app basically I am drawing a basic shape i.e 3d cube, which can rotate according to user's finger motion. Now I am stuck on coloring part of this cube. I want user to choose surfaces of his choice to color this shape. So what I am trying to do is...I am changing the array for glCol...

iphone - EASY APNS,Push Notification , what should i use to run it?

hi guys, im looking at http://www.easyapns.com/. Push Notifications Im still new in iphone programming so please pardon me for any newb questions :\ i)Should i test this EASY APNS on a Mac or a Windows PC? ii)What should i use to run this php EASY APNS so that it acts like a server.? (pardon me if im not making sense). Apache? ...

Objective-C property reference count

Could someone please help me understand reference counting in Objective C properties. Suppose I have class @interface TA : NSObject { TB* tb; } - (id) init; - (void) dealloc; @property (nonatomic,retain) TB* tb; @end @implementation @synthesize tb; - (id) init {...} - (void) dealloc {...} @end My understanding is that assignment...

Display image from MySQL database in a UITableView iPhone

I have some image data stored in BLOB format in MySQL database, I fetch the string and integer data but for image it does not display. i also tried using a UIImageView but it doesn't work. Can some one please post some code to display the image data in a UITableView. NSData-->UIImage-->image display. Thanks ...

iPhone OpenGL ES Contexts and Framebuffers

I'm attempting to setup a framebuffer properly in order to support depth and correct perspective. I'm using the OpenGL ES Application template in XCode and I have been following the guidelines as listed here: http://developer.apple.com/iphone/library/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/WorkingwithEAGLContexts/Wor...

Set the title of an UIPopOver View Programmatically

How do you set the title of an UIPopOver View programmatically? I found some sample code but wasn't able to set the title. myView *theView = [[myView alloc] initWithNibName:@"myView" bundle:nil]; UIPopoverController* aPopover = [[UIPopoverController alloc] initWithContentViewController:theView];...

TouchXML - Invalid XML does not return error object

Say I have an invalid XML. For some reason, TouchXML still sees it as a valid object. For example: NSString *str = @"?> obviously invalid!"; NSData *data = [str dataUsingEncoding:NSASCIIStringEncoding]; NSError *parseError = nil; CXMLDocument *document = [[[CXMLDocument alloc] initWithData:data encoding:NSASCIIStringEncoding options:0...