iphone

UINavigationController how to set title

Hi all, I have a Controller/View for a generic list of items, that can be extended for displaying a custom list.. Listing and navigation works fine.. but I can't change the title of UINavigationController. In the generic Controller: - (void)viewDidLoad { [super viewDidLoad]; [self.view addSubview: navigationController.view]; } -...

How do I make a pretty UITextView that expands as needed (like the one used in the SMS app)?

It should: Expand vertically whenever new lines are added with the return key. Wrap long lines and expand vertically for wrapped lines as needed too. Have a nice pretty border just like UITextField. Support placeholder text just like UITextField. Support friendly actions like UITextField. ...

using Kal calender from github

Hi, i am trying to use the kal calender from following url http://github.com/briancollins/Kal. I have succesfully implemented this calender in my code but now i want to get the date click event on the calender in my viewcontroller where i have added this calender. can someone please suggest me how can i do it?.... ...

How to create Reset button in iPhone Settings

How can I create a "button" in Settings bundle? Something like "Import SIM Contacts" inside Mail settings? Or "Reset Calibration" in Nike + iPod application? Need to have a "Reset Username and Password" button for Settings, if that is a special case... I mean how can I add logic to clear some of other settings, while my own app is not r...

I am Using the default UITableViewCell .I want to set the image on cell from my local server...cell.imageView.image

BLImageCache *sharedImageCache = [BLImageCache sharedInstance]; NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:indexPath ,@"IndexPath", nil] ; NSString *urlString; urlString = [[mNewsArray objectAtIndex:indexPath.row] objectForKey:@"imgUrl"]; urlString =[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8Str...

Difference between add to target & add to project in XCode

I am trying to inegerate Google Toolbox for mac for unit testing purposes on this page http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting is says add blahblah.m file to your target & add blahblah.m file to your project. What is the difference, how should I add to target... ...

How do I switch to using Core Data for a simple UITableView instead of an NSArray?

I have an application that uses a UITableView to present data that I have stored in an NSArray. I would like to switch over to using Core Data to host this information to be presented to the table view, but I'm not that familiar with Core Data. I've created a new Core Data database within my project, but I'm lost as to how to proceed ...

how to check if array is null or empty?

Hi all, i want to check if my array is empty or null, and on base of which i want to create a condition for example. if(array == EMPTY){ //do something } i hope i'm clear what i am asking, just need to check if my array is empty? regards ...

How can I set a proxy object for a class loaded from a nib?

I have a NSViewController instance loaded by another nib. I think that initWithCoder:(NSCoder *)aDecoder, is called by the father nib. I want to set a proxy object in this new object. How can I do that? ...

TTTableImageItem : scrolling resizes image

Hi, I'm filling a TTTableViewController (via its "datasource" property) with items of class TTTableImageItem. The images are thumbnails downloaded from Youtube, and their original size is 120x90. In my TTTableView, they are automatically reduced so that they fill in their cells. But when I scroll up or down the view, they get back to t...

UIPickerView problems

Hi all, I have a very simple application that use a 2 component UIPickerView that causes me a crash every time I click over it. I dragged it into my view by IB, then hooked up dataSource and delegate to File's Owner. In the .h file: @interface SettingsViewController : UIViewController <UIPickerViewDataSource, UIPickerViewDelegate> { W...

How to add a push pin to a MKMapView(IOS) when touching?

Hello, I had to get the coordonate of a point where the user touch on a MKMapView. I'm not work with the Interface Builder. Can you give me one example or a link. Thanks a lot ...

Difference between view's frame and view's bound + iPhone

Hi all, I want to know what is the difference between 'frame' and 'bound' property of UIView. I get the same results using both properties. I can not figure out the difference between the two.. Thanx in advance. ...

Error running google tool kit for mac unit test

I am trying to install google toolkit for mac, everything is setup as advised here : http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting but when I try to compile I get this error Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle ...

Dealing with editable items in a filtered UITable with an NSMutableArray copy

I have a UITable with a datasource that is set to a 'copy' of the original data. I use this copy to displayed filtered results (either 'All' or only those that are 'checked' with a UISwitch in each row). My logic for doing the filtering is here: -(void)filterItems { [tableData removeAllObjects]; if (checkedOrNotSwitch.selectedSegmentInd...

Ternary Raster Operations in Mac OS X and/or iOS?

I am looking to implement a mechanism that combines bitmaps together in a variety of complex ways, using ternary raster operations like you can in Windows. The idea is to be able to blt an image to a destination using any kind of combination of the source, brush, and destination pixels (source AND destination, source AND brush AND desti...

-[NSCFString objectAtIndex:]: unrecognized selector

I have this little problem I couldn't find in Google: UITableView works fine until I start scrolling. Error Message: `-[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x5f24870 ` Method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString...

iPhone EKEvent Availability, i try to set it, but it wont change.

Im trying to set the availability of an event i import into the iphone calendar with my app. Im using this code: [event1 setAvailability:EKEventAvailabilityFree]; When i sync my iphone to my iCal i check the availability of the event, and it says "Busy". Xcode do ask for an integer, but there is none for the free option. I get no erro...

What is an effective way to deal with iphone orientation change while displaying an image

Disclaimer: I know the question of locking orientation has been asked, and solved. But that's only half my question. I'm building an iphone website for a small indie game developer. They want to be able to show off screenshots from some of their iphone games. This is somewhat of a problem though. All the screenshots are taken from the g...

UINavigationController issue. viewWillDisappear/viewDidDisappear of view controllers not call on application startup

Hi, I am writing an application(for iPhone) that uses the UINavigationController to show different view via pushViewController. I am trying to push multiple UIViewController immediately upon application startup without user interaction. When an user open up the application, they will be looking on a screen with a navigation bar on the t...