iphone

How do I drop a pin with MapKit?

I would like to allow the user of my app to pick a location in the map. The native map has a "drop pin" feature where you can locate something by dropping a pin. How can I do this in MapKit? ...

iPhone UITableViewDelegate Question.

Hey all, I have a basic question that's driving me crazy. I have a class inheriting from UITableViewController. It is the root controller in my navigation controller. I have another class that implements the UITableViewDelegate and UITableViewDataSource protocols (my delegate). Basically, in my delegate's tableView:didSelectRowAtIndex...

Iphone: UIAlertView works in simulator but makes the app freeze on iphone

Hi.. I`m working on a project where an alert should pop up after returning from a controller with an empty value. It does pop up in the simulator, but on the iphone the app freeze and exit when returning from the controller. Any ideas? Here is my code: - (void)manualBarcodeViewControllerDidFinish:(ManualBarcodeViewController *)con...

Are there simple-to-understand examples on how to use a UITabBarController?

I want to use a UITabBarController but find that very difficult. I have a book that uses it in a giant project where I would have to complete that for a week or so and then find out what parts belong to making the UITabBarController work. Maybe you know of an good article about that? ...

Moving multiple UIImageView with UIAccelerometer?

Hi, can anyone post or direct to how move multiple UIImageView objects depending on the Accelerometer movement. thanks. ...

Restricting access to server to iPhone app

I'm building a client/server iPhone game, where I would like to keep third-party clients from accessing the server. This is for two reasons: first, my revenue model is to sell the client and give away the service, and second I want to avoid the proliferation of clients that facilitate cheating. I'm writing the first version of the serv...

Search Controller is not showing up in TableView Controller.

I draged and dropped Search Display Controller onto my TableView Controller. When I push that TableView controller from RootView controller, Search Bar is not showing up on the top of the TableView. I used the same technique for the rootview controller and I could see SearchBar on the top of my TableView. What could possibly cause that...

Core Data decorating with sort-compare methods

Hi I have some NSManagedObjects and I would like to write methods for sorting and comparing the properties on them. My problem is that since Core Data defines the properties as @dynamic they can not be referenced at compile time. This means that decorating an NSManagedObject with methods like this: - (NSComparisonResult) compareDateAn...

Unable to dismiss MFMailComposeViewController, delegate not called

HI, I am calling MFMailComposeViewController from UITableViewController. Problem is, delegate method mailComposeController:(MFMailComposeViewController)controllerdidFinishWithResult* is never called when I select Cancel or Send button in Mail compose window. Here is the table view class: @implementation DetailsTableViewController - (vo...

Why does UITableView make so many calls to its delegate & datasource?

Anyone care to shed some light on why UITableView makes so many repeat calls to its delegate & datasource as it's being setup? Just looking at one I'm working on now I see that numberOfSectionsInTableView is called 3 times and then viewForHeaderInSection cycles through 3 more times for each section (I have 2 sections so total of 6 times ...

How to Get Image position in ImageView

I use a full screen imageView to display the image, as follows: UIImageView*imageView=[[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)] imageView.contentMode=UIViewContentModeScaleAspectFit; imageView.image=srcImage; As the srcImage size differs, its position (frame) in the imageView differs, how can I get the position of th...

takePicture is being difficult on 3.1

Ok. So I have a ViewController which implements the UIImagePickerControllerDelegate. Great. I also have an overlay view going on top of my picker. I have a button on said overlay that I want to call takePicture on. My question is, How is this done? takePicture isn't something I need to write myself is it? It's defined in UIImagePickerCo...

iPhone/OpenGL ES: How do I save the changes made to the texture?

I'm new to OpenGL and it is overwhelming. I'm playing with GLImageProcessing sample from Apple. It has few image processing filters like brightness, contrast and hue etc. Each time when I apply a filter, it starts all over instead of starting from previously applied filter. Any ideas? How do I save the modified texture or framebuff...

UITableView horizontal cell separator lines don't scroll up or down.

I have written some MonoTouch code to display a Nib'less UITableView and the view looks ok populated with cell data on initial display. However when I touch scroll down to view more data I end up with a double grid patten comprising of static horizontal cell separator lines that don't move with the scroll action plus another set or horiz...

UITextField and UITableViews... Am I doing this correctly? If not, what is the best way?

I have an array of folders. Each folder is listed as a table view row. When I display my table, I populate it with a set of textfields on the left hand side of the row (i want the user to be able to edit them) and a set of switches (on/off) on the right hand side of the row. All is working well, you can touch the textfield and the k...

Why display UIAlertView must be at the end of Thread

Hi everybody I'm confused, I want to popup a UIAlertView on the screen. But I find UIAlertView popup just after the whole codes complete or I invoke NSTimer. I want to know the reason about it. Is there anyway let me to control the view visiblility? ...

How can I get a textDidChange (like for a UISearchBar) method for a UITextField?

How can I get a textDidChange method for a UITextField? I need to call a method every time a change is made to a text field. Is this possible? Thanks! ...

How to change the size of the crop rect when using UIImagePickerController

I need to change the size of the cropping rect when using UIImagePickerController. In my case, I need the user to select images that are 320x385 but the crop rect currently only allows 320x320 (when allow editing is on). Any ideas? ...

Is it possible to get GPS satellite numbers via iPhone SDK ?

Is it possible to get GPS satellite numbers via iPhone SDK ? ...

how to draw on the surface of imageview transparently

i want to track finger touch and draw the path on top of the imageView. following is what i did: In the touch event: UIgraphicsBeginImageContext(imageView.frame.size); [imageView.image drawInRect:CGRectMake(0,0,imageView.size.width,imageView.size.height)]; //drawing..... imageView.image=UIGraphicsGetImageFromCurrentImageContext(); UIG...