cocoa-touch

Is there any other way than @2x to let iOS know that the graphic is Retina Display ready?

I have a web service producing two versions of graphics; one for Normal Display and another for Retina Display. Unfortunately I can't add the @2x to the filename since I don't have access to that code. Is there any way to let the iPhone know that what's loading from the web is a @2x graphic? ...

UIView wait for frame to be set

Hi I have a problem that drives me crazy. I have a UIImageView in a UIView. The image should be replaced with a flip-animation of the view. So i remove an add a subview in the view. That works fine. But now i am trying to change the image and the frame property of the imageview right befor the animation starts. The problem is, the chan...

iphone tab bar app view life cycle question

This is probably a stupid question with an easy answer. I'm new to iOS dev and this is killing me. I have a basic tab bar app. The app loads the initial tab upon launch and it is a tableview controller. The data for this tableview is supplied by a datacontroller where it creates an array from data fetched from the internet. When I firs...

What's the best way to get a bool value from a detailViewController?

In my navigation based app, there is a button that if pressed, will change the view to a detailViewController. Here the user can set several options. One of those options is a bool value. When I return from the detailViewController how can I see what this bool value is? ...

How to intercept long press on UITextView?

Total Objective-C / Cocoa Touch noob here, beware. I'm trying to intercept when a user long presses on a UITextView (a magnifying glass then appears with the caret positioner) and then releases the touch, i.e. when normally the "Select" and "Select All" Options appear, after the magnifying glass. I want to replace this with my own custo...

UIScrollView only works in landscape

Hello- Trying to get up to speed on UIScrollView for an app that I'm working on. Found a tutorial at http://www.tckdeveloper.com/Tutorials/iPhone/ScrollViews.html that helped out and that got the scroll view working in landscape mode. Started adding more content to the view so that scrolling was needed in the portrait view as well. When...

Keyboard information inside "didRotateFromInterfaceOrientation"

How can I deduce the information if the keyboard is visible while device orientation is changed? Does this information is sent inside - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)iFromInterfaceOrientation method? ...

Create a timetable with CoreData

Hello everybody!! I'm new to Stack Overflow and have my first question. I want to develop an application with a timetable. I've one UITableViewController and one CoreData entity called 'SchoolClass'. With arrow buttons I can switch between the days of a week. My problem is that I want to have all classes in the entity 'SchoolClass'. When...

App Crashed Because of Low Memory

How can I setup my app to handle low memory situations? What are best practices? Incident Identifier: 8BFDA96C-1019-4316-A278-CB86CC67172A CrashReporter Key: 1657e021ecba3a19c5ed9f0cff62947a426a2bc2 Hardware Model: iPhone3,1 OS Version: iPhone OS 4.1 (8B117) Date: 2010-09-28 00:00:12 -0700 ...

iPhone SMS chat bubbles approved in App Sotre?

I want to integrate the iPhone sms like chat bubbles in my application. But when I read more about it I found that this will not be approved by the app store. Is this true? Cant we use chat bubbles in the application? Here are some links which describes this. http://www.iphonestalk.com/iphone-app-store-submission-rejectedbecause-of-cha...

Adding NSDecimalNumbers not quite working

I have this code: NSLog(@"Count of items we will loop through is: %d",[self.defaultBudgetItemsArray count]); id object; while (object = [e nextObject]) { if ([object objectForKey:@"actualCost"]) { currentTotal = [currentTotal decimalNumberByAdding: [object objectForKey:@"actualCost"]]; NSLog(@"decimalNumberByAdding g...

Difference between [UIView beginAnimations:context:] and [UIView animateWithDuration:animations:]

It appears to me these two class methods are not interchangeable. I have a subview of UIView with the following code in the touchesBegan method: if (!highlightView) { UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Highlight"]]; self.highlightView = tempImageView; [tempImageView release]...

Use two different cell identifier on same table view

I'm trying to get rid of a cached UITableView cell. I have two sections. The first cell of the second section has the same "appearance" as the first cell of the first section. With appearance I mean the cell height (multiline cells). I tried to use different identifiers, but that didn't worked. Here is the code: NSString *identifier; i...

Iphone and Youtube api

Hi, I want to retrive uploaded videos from a certain youtube channel and I want to display the list in a UItableview. Then when user clicks on a row the video will play. Is this possible to do with youtube api? Im new to Iphone app development and I need to get this done asap. Can some one provide some code samples or point me in the rig...

Find web resource files in bundle

I have several html files which will be located in the documents directory at locations only known at runtime (may be within a varying tree hierarchy). The resource files (javascript and css) however will be located within the application bundle. What path do I need to use in the html files in order for them to find the resource files? ...

How to add a NavigationViewController to a project created using the ViewController Template

I have created a new application using the View Based Application Template in xCode. My first view, which displays on loading the app, is a button based menu. One of the buttons (Make) should load a new navigation stack using a NavigationViewController. There are other buttons that when implemented will do other things outside of Navig...

How to implement a custom protocol

In this part of my code I get a warning message saying it doesn't implement the custom protocol I made. detailViewController.delegate = self; How do I implement the protocol? Then when I run the program it crashes saying '-[DetailViewController setDelegate:]: unrecognized selector sent to instance 0x6a1c450' ...

How to update a free version of App with Paid version of same app from the app in iPhone apps?

I am developing an which requires up-gradation of App from free app to paid app in free application itself. i want to lock some features in Free app and if user wants to access locked things they have to download paid app by tapping on the "Update to full version" button in application itself. I am thinking that this feature can be poss...

Ignore case UITextField/UITextView

Hi, I would like to ignore all case sensitivity to be ignored for my UITextField and UITextView. I would also like to know how to detect if the string is upperCase or lowerCase. Thanks. ...

How to reuse common subelements of a custom UITableViewCell with iOS Interface Builder?

I have several custom UITableViewCell, which share a lot of common subelements. I tried creating a UIView and using it as a subview for all the table cells, but obviously this wouldn't work, since entities in IB are object instances, not classes or templates. How can I capture these common subelements in a custom control and drag it i...