iphone

iPhone - user interaction with programmatically added UIImageView

So I'm trying to add UIImageViews programatically (in this case I don't have the option of doing it in IB) and I want to be able to refer to them and manipulate them in the -touchesBegan and -touchesMoved methods. I've added the images like this: UIImageView *newPiece = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString s...

FBConnec how to use variables in FBStream Dialog?

I am using a FBStreamDialog to publish to a users wall in my iphone app i am creating. How can i publish the value of a variable into dialog.attachment? eg. i want a name to appear in the description section ...

how to implement dtmf

hi any of them know how to implement dtmf in iphone application. thanks in advance. ...

Call a Phone number and pass DTMF using the iPhone SDK

Please suggest me to achieve the below requirement using iphone SDK. 1) Programatically Dial a Phone Number through the iPhone SDK 2) Send additional DTMF after the number is called. After googled found tel URL scheme is available to make a call. Not sure about sending DTMF tones. Please help me. https://developer.apple.com/iphone/li...

Setting the UIImagePickerController delegate throws a warning about UINavigationControllerDelegate

The code: UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [self.navigationController presentModalViewController:picker animated:YES]; [picker release]; The warning, which shows up on the picker.delegate = self; line: Class '...

tabbarcontroller as a subview

Hi I have a main view screen with navcontroller in my app with two UIbuttons. Now i want that when I press one button a subview will be pushed. this I know how to do. The problem is that I want this subview to be with tabbarcontroller. I know how to implement tabbar on the main views (within the app delegate), but I have really hard time...

Adding subviews to UITextField leftView property

I am trying to implement an autocomplete text field for the iPhone/iPad. I have subclassed a UITextField. As a user enters search criteria, if the search string matches some entity in our database, then that entity becomes part of the user's search criteria and I want to append a button representing that entity to the leftView property...

Is there nice tutorial of -how to create iphone 4.0 that support multitasking ?

Is there nice tutorial of -how to create iphone 4.0 that support multitasking ? meaning, create simple app in iphone 4.0 o.s that will continue working while in background and when return to forground i will see the right progress status. hope im clear. thanking in advance. ...

Is there an iPhone API that allows me to use VoiceOver directly in my app?

Hello all: I'd like to allow a user to press a button directly from my app and read what's on the screen using VoiceOver. Right now, my only option is bundling recordings of each page and just playing them when the user presses the button. VoiceOver would really simplify this process. Is it possible? Thanks! Thomas ...

iPhone: TabBarController as second level of Navigation Controller

I'm new to iphone development. I've read tutorials about implementing a tab bar controller on the window (eg as the main controller for the app). But how can I create a tab bar controller as a 'standalone' UIViewController that can be called by a navigation bar controller? Basically my navigation bar controller has an array of UIView...

iPhone OS: Fetching a random entity instance using NSPredicate Nsfetchrequest and core data

Working on an app where I have a large collections of managed objects against which I want to fetch a few random instances. My question is, is there any way I can use NSPredicate and NSFetchRequest to return several objects at random. I saw that you could actually add a NSFetchRequest into the entity using the data modeler, any way to ...

How to properly display videos on mobile devices?

This is a 2 part question: What is the best way to display video on mobile devices? For example if I send via SMS a URL to a video... what is the proper way to do it? Should the URL have some sort of script (question #2) to detect which device is requesting the video and then deliver the right format? If my #1 assumption is correct, w...

iPhone: UITableView with custom cells for settings

I want to use a UITableView for my settings screen. So that my settings view will look like apple does it, with a group table view, and then the UI elements to let you change settings. So, it does not seem like the cells are loaded from an array, but seems like each one is customized. Ideas on how to do this? ...

Why do I have a memory leak in UIApplication

I have an iphone app project. I analysed it using instruments memory leak tool. According to instruments I have 2 leaks the Trace is as follows: start main UIAplicationMain _run CFRunLoopInMode CFRunLoopRunSpecific PurpleEventCallback _UIAplicationHandleEvent sendEvent: handleEvent:withNewEvent: After this trace there are two separat...

Force a UIView to redraw immediately, instead of during next run loop

I've created a UIImagePicker / camera view, with a toolbar and custom button for taking a snapshot. I can't really change to using the default way because of the custom button, and I'm drawing on top of the view. When you hit the button, I want to take a screenshot using UIGetScreenImage(); however, the toolbar is showing up in the imag...

How to manage memory load of static, lazily loaded dictionaries and arrays.

Generally, I use static arrays and dictionaries for containing lookup tables in my classes. However, with the number of classes creeping quickly into the hundreds, I'm hesitant to continue using this pattern. Even if these static collections are initialized lazily, I've essentially got a bounded memory leak going on as someone uses my ...

Performance issue finding weekdays over a given period

I have some methods that return the number of weekdays between two given dates. Since calling these methods become very expensive to call when the two dates lie years apart, I'm wondering how these methods could be refactored in a more efficient way. The returned result is correct but I feel that the iphone processor is struggling to ke...

What to do with CSV after export on the iPhone?

One of the requested features for my apps is to have an export feature. Most of the time the data is table-like in nature. As an example, users might enter every day what types of food they ate that day, and how many portions of each food type. As the data is table-like, I figure the most useful for export would be into CSV format. Then ...

UITableViewCell no userInteraction but on cell.accessoryView

hello genius and nerds I have a TableViewCell with a UISwitch in accessoryView. I don't want that blue background if someone selected it. There fore i used cell.userInteractionEnabled = NO; but then the whole cell isnt accessable so i tried that cell.userInteractionEnabled = NO; cell.accessoryView.userInteractionEnabled = YES; i t...

How to synch SQLite data to server in iPhone

Hello Guys, I'm a total noob when it comes to iPhone development and have been tasked to create a database app that can download and upload sqlite data to and from a server via http using web services. So far I already have a form for retrieving and saving data to a SQLite database and now I need some information on how I can upload the ...