iphone

UITableView reloadData loads old data

Beginner iPhone programmer here, so bear with me. Here's the problem: I have a UITableView. I also have a search controller. When the text in the search bar changes, it calls the reloadData method which adds getDataInBackground to the NSOperationQueue. Once the operation is done, it calls [tableView reloadData] in the main thread. Here...

place contacts into black list from my iphone?

hello everyone, I have needed to place contacts into blacklist. Does anyone knows how can i place contacts in blacklist from my iphone ?? Any Private APIs ??? Thanks in Advance...... ...

[UIDeviceWhiteColor intValue] error

Hi, Anyone got the following error? -[UIDeviceWhiteColor intValue]: unrecognized selector sent to instance 0x14e490 ...

how to set up the orientation of actionsheet in iphone?

An app consists rootviewcontroller(rvc) & its detailviewcontroller(dvc) and i wanna run app on both mode. rvc holds uiimageview & then tableview and dvc holds two buttons my problem is that when i build & run the app its shows mvc perfectly on both mode but when i clicked one of table'cell the control goes to dvc in the case the simulat...

UISlider to modify NSTimer interval crashing application when moved

Heya again, I have been having problems creating a UISlider that can be used to modify a NSTimer I created. Essentially the slider is ment to modify the interger that the NSTimer is counting down from, but when I try to move the UISlider, the application crashes, I'm assuming this is because it is interfering with the countdown that is o...

NSArray objects go out of scope after returning pointer

I am attempting to use the below code in a function to return an array of dictionary objects. Unfortunately, after the return to the next function in the stack all of the rows in the mutable array have become 'out of scope'. From my understanding, the array should retain the row (dictionary) object automatically so even after the retur...

UITableViewCell returns 44px height when set higher

I'm setting the height of my UITableViewCell as part of the method heightForRowAtIndexPath:. It's working fine, I can see the variable cell heights when the app runs. However, as part of creating the content in the cell using cellForRowAtIndexPath, I would like to position an image in a certain place depending on the height of the cell....

Possibilities to use NSTimer global

Hi all, I am implementing an iPhone application. In that I need to use a timer to call a method to get the values frequently. And Also I need to stop the Timer in another method. So I need to use it as global. But I don't an idea to create a global Timer can you guys please help on this. Thanks in Advance, Sekhar Bethalam. ...

My application is trying to hijack my own application?

I'm developing a iPhone application and until now not big problems. But today I had a weird problem. When I run my application in the simulator, everything works fine. But when I run my application on my iPhone 3GS I get a SIGABRT signal in the XCode and the following message on the console of my device: Sat Aug 28 12:00:56 Peters-iPhon...

Several lines of code, that blows my mind (or NSString "out of scope" dilemma.. again)

Hey, everyone! I'm totally confused with this small "out of scope" thing. So here is some code to describe my situation: Simple iphone view-based application. View controller header: #import <UIKit/UIKit.h> @interface global_nsstring_testViewController : UIViewController { UIImageView* image_view; NSString* image_name; } @propert...

iPhone Developer Community voice over IP

Hi, Anyone know if there exists any Broadcast/Groups system online that allows developers to become connected in real time to be able to voice chat and keyboard chat, specific to their needs, something a little more immediate as opposed to forums/stackoverflow/pm software. I for example would like to join a voip chat related to mapkit ...

UINavigationBar with TableView and Segmented Control inside UITabBar

I have a tabbar application. Second tab had a drill down table list with Navigation Controller. I also want to implement a segmented control inside a tool bar that shows different table entries as per the selected switch in segmented control. I am a little confused as to how to implement this? Screen-shot - This is the view in second...

How to forbid the movement between 2 UITableViewCells in different section in same UITableView

Hello everyone I have a UITableView with 2 sections. The UITableCells in the same section can be moved. But I hope to forbid the movement between 2 UITableViewCells in different sections of a same UITableView. Is it possible? Welcome any commnet Thanks interdev ...

iphone grouped uitableview header font style

I'm having trouble changing the section header for my grouped uitableview. I have tried everything. I have wondered whether it is a bug with the simulator or something? I am running the latest version of xcode and am developing for the iPad. Here's my tableview header code - (UIView *)tableView:(UITableView *)tableView viewForHeaderIn...

What to keep for iPhone app?

I have submitted an iPhone app to Apple for approval and distribution. What do I need to save of the code and compilations to be able to bug-fix if (when?) the bugs come in? Should I just save everything, or just the symbols file? ...

UISearchBar is not displaying Scope Bar

I use the following code to display a UISearchBar with a Scope Bar. UISearchBar *searchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, 45)]; searchBar.barStyle = UIBarStyleDefault; searchBar.showsCancelButton = NO; searchBar.autocorrectionType = UITextAutocorrectionTypeNo; searchBar.autocapitalizationType = UITextAutocapit...

how to set absolute positions of axis in core plot

Hi, I'm working with core plot on iPhone now, and I'm trying to set up the ScatterPlot graph in such a way that [0,0] coordinates are always at the same place (that is 40 pixels from the left and 40 pixels from the bottom) I just wasted 4 hours trying to get this to work, and still have no idea, help! Bonus question - how to set up axi...

Why can't I get the context from the delegate with this code?

I get an annoyingly vague error from the following code: GFree2AppDelegate *delegate = [[UIApplication sharedApplication] delegate]; context = [delegate managedObjectContext]; context is defined as a NSManagedObjectContext in the .h file and is the same in the delegate. All the right files seem to be included (except for <CoreData/Cor...

I Have: RSA key, exponent, plaintext. I Want: cipher text. Should be 2 lines of Obj-C no?

As the title says. Using the iPhone SDK, I want to RSA encrypt some (small) plaintext using an existing key and exponent I am given from a server for authentication. Surely this is a trivial task that requires one library import and a couple of lines of code? If not, why not? ...

Can iPhone receive and store files as if it were a USB thumbdrive?

I have an external device w/ a USB port. The device periodically writes files to a USB flash drive in the USB port. I would like to be able to plug an iPhone into the USB port and have the files written and stored on the iPhone instead of a USB flash drive. The intention is to have an iPhone app running when the phone is plugged into th...