iphone

My UIViewController is "lying" about its center property

I'm asking my ViewController for it's view.center property and drawing a new UIView that centers itself around this "center"... I am getting (160, 250) as a response. but when the new UIView draws it's below center... So I'm wondering who's giving me this info and what it relates to? This is clearly where the center of the view is in re...

How to sort Core Data fetched properties

The Core Data Documentation states that: The fetch request associated with the [fetched] property can have a sort ordering, and thus the fetched property may be ordered. How do I specify the sort descriptors for the fetched property in Xcode's data model editor? I can't find a relevant field anywhere. I'm developing for the iPhon...

How do you use Interface Builder to control UINavigationControllers properly?

Hello All, I have been in the process of learning to build iPhone applications for the last two weeks. I've gotten through a fair amount of content, and now I'm trying to create a modal pop up with presentModalView. I can can successfully create and slide up a view, but I notice that modal views don't provide you with a default navigat...

Reconstituting objects from nib - Just add water? maybe not...

Much I've read talks about the advantages of setting your UI up in IB. And how when the nib is "awoken" all the objects in it "come to life". I'm experimenting with placing about 10 UIView objects into a nib that is owned by a ViewController. The UIView objects are of type MyView and are wired back to their respective properties in the...

Persistent UIBarButtonItem in UIToolbar?

I've been developing an iPhone app that uses a UIToolbar (in the context of a UINavigationController) to display a small status icon at the bottom of the screen. The toolbar will eventually also have action icons associated with it (think Mail application). I'm running into an issue where it appears that each UIViewController pushed ont...

How to make background color in viewForHeaderInSection the same as one in titleForHeaderInSection?

Hi, I want to highlight one of the titles in grouped section, just like the Calendar application. I am trying to use UILabel as the return view in viewForHeaderInSection. But I am not sure what color is in the default heder. Does anyone know? Thanks a lot. ...

Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile

I get this build error when I build my iPhone project to run on my device: Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile My development code signing certificate expired so I got a new one. On my first attempt I created a new CSR and got the message above. The second time I reused my ...

Can you add a UITableViewController's TableView to another View?

I've inserted a UITableViewController and it's corresponding UITableView into a simple IB document. The goal is to include the UITableView inside of a parent UIWindow (or UIView) with other "stuff" (anything really) adorning the table. Here's what that might look like in Interface Builder. http://danharrelson.com/images/skitch/iphone-ta...

A UIButton in a UITableViewCell & getting bounds/frame

I have a UIButton in a UITableView cell, in a UITableView. The result is a list with buttons in it. When the UIButton is pressed, it calls a touchUpInside method, and all is great. What I am having problems with is that I want to zoom out a new view from the location (frame) of the button when it is pressed. If I just get the bounds ...

I have a circular reference. How can I create a weak reference in Objective-C?

I have an object of class Row that needs to release numerous objects of the class Block. Every Block currently has a property that retains an instance variable of class Row. Every Row contains an NSMutableArray of these Blocks. I understand that this is a circular reference. Apple's documentation states that in order to deallocate an obj...

iPhone build lite and full versions - adMob problem

Hi, I'm traing to build a lite version for my app the way it is described in this post: http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app After creating the two targets the full version can be built the lite version stops building with this error at the 'linking' stage: "library...

UITableview Selection Hide

I want to hide(or notshowing) Selected row in tableview.... i am using [self.tableView deselectRowAtIndexPath:indexPath animated:NO]; But its doesnot work. Can anyone help me? ...

What's the right way to add a ToolBar to a UITableView?

I'm writing a Navigation-Based iPhone app, and I'd like to have a UIToolBar docked at the bottom of my screen, with a UITableView scrolling between the tool bar and the navigation bar. I've seen a couple of forums where it's been suggested that the View Controller handling this view should be a standard UIViewController rather than a U...

How to set UIButton keep selected/highlighted until match a condition ?

how can i do that? i want my UIButton remain selected until have make certain condition ...

Changing image on UIButton when user presses that button on an iPhone

Hello, I want to change the image on UIButton, when User presses that button. So, I have write btnthumbnail2 setImage:[UIImage imageNamed:@"leaderboard_ov.png"] forState:UIControlStateNormal]; and after that I change the view. The image is changing but not display the changed image.I think the controll goes to next view tha's why it ...

iPhone - Why does the documentation say UIImageView is NSCoding compliant?

Ideally an NSCoding compliant class will work as expected using encodeWithCoder: and initWithCoder: (at least I thought so till recently) without the developer having to bother about what goes on inside the routines (unless my idea of an NSCoding compliant class are totally screwed up!) The UIImageView class is NSCoding compliant. So I ...

how to click on a button in the iphone application and link to a second page within the app

i am building up a view-based project with out a navigation bar. I have 2 pages. Simply need a button to link from page one to page two. Then a button to link from page two to page one. Seems it should be very simple but i am having a heck of a time trying to get it. ...

Checking for multiple characters in nsstring

hi i have a string and i want to check for the multiple characters in this string the following code i working fine for one character how to check for the multiple characters. NSString *yourString = @"ABCCDEDRFFED"; // For example NSScanner *scanner = [NSScanner scannerWithString:yourString]; NSCharacterSet *charactersToCount = @"C"...

Screen-to-World coordinate conversion in OpenGLES an easy task?

The Screen-to-world problem on the iPhone I have a 3D model (CUBE) rendered in an EAGLView and I want to be able to detect when I am touching the center of a given face (From any orientation angle) of the cube. Sounds pretty easy but it is not... The problem: How do I accurately relate screen-coordinates (touch point) to world-coo...

hiding the animating image which shows the image capture action in iPhone

I want to hide the default image in iPhone which shows the image Capture process. I created an object of UIImagePickerController, and wrote the methods for saving the image into photo library. When I press the capture button the default animated image comes, which shows the saving process. How I hide that animated image ? Is there a...