iphone

Just want to confirm if this request is 100% secure connection

Hi I am writing an iPhone App and I need to securely send an XML request and receive it ALL securely. I think I did it right I just want some confirmation that the below code is all secure. Thanks. NSURL *url = [NSURL URLWithString: @"https://secure.site.com/request"]; NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url]...

Detect backspace in UITextField

Is there any way to detect when the backspace/delete key is pressed in the iPhone keyboard on a UITextField that is empty? I want to know when backspace is pressed only if the UITextField is empty. Based on the suggestion from @Alex Reynolds in a comment, I've added the following code while creating my text field: [[NSNotificationCe...

How to use tableView:editingStyleForRowAtIndexPath ?

I have a very simple application with a UITableViewController. Upon EDITING, I am trying to slide a row into position 0 of the first section. The new row should have an INSERT editing style while the existing row should have a DELETE style. I've overridden the following 4 methods: // Customize the number of rows in the table view. - (...

How many UITableView can place in a View?

I'm beginner in Iphone! Can I place many UITableView (greater 1) in a View? And how to control them? ...

How do I concatenate two images in objective c?

I have two UIImageView's, and I want to concatenate them both to be one UIImageView. To let you know, the images have some transparency to them so you will see both of them. Als they are the same size. ...

[iPhone] Problem with autoresizing when iPhone is rotated

Hello, In my iPhone app, I have a view (let's call it RectangleView) within the content view that I'd like to scale, along with all its subviews, when the iPhone is rotated. So, when the phone is rotated from landscape to portrait mode, I'd like RectangleView (and all its subviews) to keep their original shape and position relative to ea...

comapare version numbers in objective c

hi, i am writing an application that receives data with items and version numbers. The numbers are formatted like 1.0.1 or 1.2.5. How can i compare these version numbers. I think they have to be formatted as a string first, no? If so, what option do i have to having objective C understand the 1.2.5 is newer than 1.0.1? ...

How to set a CGFloat to a UILabel's text property

I have a UILabel called optionsDisplayerBrushSizeLabel who's text property I want to set to a CGFloat: brushSizeVal. I understand that the text property needs to be a string but I don't know how to convert a CGFloat to an NSString. ...

How to display scrollbar in UITableView.

Hi. I want to display some kind of indication to guide user to scroll. Usually when we touch the UITableView scrollbar appears if needed. But I want this scrollbar indication already displayed on my tableview. How is it possible to do so? ...

Overriding selectable area of UITableViewCell?

I'm trying to avoid putting a button in my UITableViewCell subclass so that I don't unnecessarily lag up the scrolling speed. The button would push another view onto the navigation stack. I figured since UITableView already has built-in and optimized methods for managing this, that simply limiting the touchable area of my cells would ...

NSOperation and NSOperationQueue callback

I have a class. Inside this class I pass an NSOperation into the NSOperationQueue that lives in my global variables. Now my NSOperation is finished. I just want to know that it is finished in my class and to have the operation pass data to that class. How is this typically done? ...

how to play MID sound file in iphone?

I have implement game application in which i want to play mid sound file in the background.How it possible? ...

Is there any UIViewController as same as MobileApp's "Info" view controller?

Hi All, Is there any predefined UIViewController/NavigationController in the IPhone API as same as "Info" in "Phone/Mobile" application? For example, suppose I received a call or dialed a number, which is not stored in address book. Then later I wanna see the details of that number, IPhone navigates me to the "Info" view when I click ...

Xcode renames files when compiling?

Every time I compile my iPhone project, Xcode renames my Default.png to default.png The file name in my project is Default.png, so it's correct in my project. It gets renamed somewhere in the compile process; is there any way to stop Xcode from renaming this file? It's the only file that gets renamed for some reason, and my app wont di...

UIApplication.SharedApplication.TerminateWithSuccess is not there

Why isn't the TerminateWithSuccess method of the SharedApplication implemented in MonoTouch? How can I invoke it? or even better, how can I programmatically close the application? ...

how to record the user voice in objective-c for iphone.

i wan to record the user voice and then play back after some time in objective-c for iphone is there any way to do this. ...

What UIView is returned when using -viewWithTag: when several views have same .tag?

Say I have 4 UIViews, made in IB, all with the tag property = 2 When I get a view with: UIView *thisView = (UIView*)[self.view viewWithTag:2]; What is the criterion for retrieving that UIView since several have the same .tag value? Is it: random the first one created the view with the lowest index in it's superview somet...

How to add refresh button to iPhone RSS Reader app?

Hi, I'm playing around with this application I got on last months Web Designer that's a very basic RSS reader. I would like to add a refresh button to the top navigation bar that refreshes all the content in the table but can't seem to work out how to do it. I've worked out it must somehow use the [tablename Reload] function, but have g...

UIControl - changing assigned selectors: addTarget & removeTarget

I'm using 10 buttons in my interface and need, from time to time, to change the button's selector. Am I required to use: -(void)removeTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents before I change the selector or can I just use: -(void)addTarget:(id)target action:(SEL)action forControlEvents:(...

Some IPhone address book related questions.

Hi All, Hi I've some questions related to address book. 1) How Can I design some UIButtons, which are as same as in the address book buttons? If you observe all the "Phone numbers" buttons in the Contact's info view, the upper and below buttons only has the curved edges not all the buttons. 2) How can I show the default image (if a ...