iphone

Using non-modalview delegation for iPhone

Okay, I understand how to work delegation in a modal view to send a message to the parentviewcontroller but what if I wanted to do that with 2 views that dont have that parent-child relationship? I have a navigation controller that flips over a modal view and then that modal view pushes a new view controller. How do I let that pushed vi...

Access objects from a popcontroller

Hi everyone I will explain my problem briefly summarizing as much as I can. I have a label lets say "Hello" which is found on my RootViewController. I have a popover which appears when I press on a button on my RootViewController. On that popover, I have another button on it and when I press on it, I want it to change the label on the...

sliding UIView back after numeric keypad entry

Hi, I am working on an iPhone app is iOS 4 where I have managed to add the done button to the numeric keypad from an online blog I read. The done button is shown when the key pad pops up and works fine. I had to hook up to the KeyboardViewDidShow event handler and add the button image with the method for it. After I press the done butto...

iphone provisioning question after restore

I recently restored my iphone, will i need to go through the provisioning process again? I ask because I'm getting the "no provisioned iphone OS device is connected" message. I've had this message before and unplugged it and it eventually worked. not this time though, thanks for any help. ...

How do I hide the tabBar on the first loading, and show on later screens?

.hidesBottomBarWhenPushed = NO; doesn't work because the view isn't getting pushed. I want the tabBar to be hidden on the first screen and able to show it again a few screens later. How can I do this? ...

What files are generated by Xcode when compiling and linking?

Since I'm used to developing in Java, I'm familiar with what files get generated by the build process and can tell what files to exclude from SVN and HG when I do comits. I'm just starting out learning some iOS app building using XCode. With XCode and Objective-C on a Mac, I don't know what files get generated. If there are files sp...

Position on UIImageView

Hi everyone Me again. I have a simple question. I have an UIImageView like the one shown below. That UIimageView is supposed to be the knob to control the volume of my iphone project. My question is, how to know the positions of bar on the UIImageView when it is rotated? Because the volume needs to be 0.5 when the little bar on the ce...

Change font name AND weight in UILabel (iPhone SDK)

Maybe I'm looking at the wrong place, however how do I set an UILabel's font and AND its weight? Looking at the documentation, there seems to be only methods to create an UIFont with a given font name and size, like [UIFont fontWithName:@"Helvetica" size:22]) OR create a bold font, with [UIFont boldSystemFontOfSize:22] How can I...

iPhone app 3d engine or not

I am developing a simple iPhone app, which: retrieves data from the server presents the data In order to present the data better I want to add nice 3d dynamic objects, for example: a car with spinning wheels next to car sales bar chart. power plant with smoke coming out of the chimney next to CO2 emission numbers The questions a...

MFMailComposeViewController : exit on cancel

Hi , i have the following code presenting the user with email from within the app : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"Subject"]; NSString* link = [NSString stringWithFormat:@"<a href='%@'>Report</a>",link]; [picker setMessageBody:l...

Strange string size detection in iPhone

I have used a UIWebView to simply show a string, with font size 14px (declared in style) the string occupies approximately 1/4 - 1/3 of the iphone screen (in height) with restriction of width of 190 then I use NSString sizeWithFont: constrainedToSize: to detect how large is exactly this string. UIFont *font = [UIFont fontWithName:@"A...

Uploading pictures to Facebook from iphone app

Hi. I'm currently using facebook to post text in the user's wall. I'm wondering if it's possible to post pictures, such as screenshots from my app for example, in the posts, because someone explained me that currently it's only possible to attach pictures from an URL to the post, and not any picture from the iphone. It's also possible ...

Get 'EXC_BAD_ACCESS' signal when invoking [UINavigationController pushViewController]

In order to speed up my app, I've create three different UIViewController in AppDelegate and it has readonly property for the controllers. Those controllers are used for navigation controller. If I tap a button on the root view, I just show another view using pushViewController method. Let me show you some code for this here. UIViewCon...

Preload UIView To Minimize Delay While Running Iphone App

I have an iphone app that has one view that needs to fetch a lot of data off of a variety of internet sites. Therefore, the amount of time required for it to load is unacceptable. I was wondering if there is any way to load the view during the 'applicationDidFinishLaunching' method so the delay is at the startup of the app instead of m...

NSRegularExpression - no iPad support?

I want to use NSRegularExpression in my iPhone app, but Apple's documentation says that it was first available in iOS 4. Since iPads are still running on iOS 3.2 this means that my app would not be available for iPads -- correct? Is there any way to get around this? Or do I just need to wait until apple's iOS 4.1 release which should sup...

TableView Cell Color

我现在遇到了个问题,如何使uitableview cell 的背景色填满整个cell ,以下是我的代码。但它不能正常工作、、、 Picture shows: http://www.flickr.com/photos/53054715@N05/4898445104/ How can I code that set the color fill in cell view? My code is below, but it does not work well. cell.contentView.backgroundColor =[UIColor groupTableViewBackgroundColor]; cell.backgroundColor=[UIColo...

Delegate Methods

I am having the parentViewController dismiss the modal view because I want it to reload the UIPicker on the parentViewController. The code is really quite simple: -(void)didDismissFormsView { NSUserDefaults *profiles = [NSUserDefaults standardUserDefaults]; NSArray *array = [[NSArray alloc]initWithObjects:[profiles stringForKey:@"name...

iphone - initializing a UIActionSheet with an array of buttons

I am initializing a UIActionSheet and I would like to populate its "otherButtonTitles" from an Array, Set, or whatever, like this UIActionSheet* aSheet = [[UIActionSheet alloc] initWithTitle:"hi There" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:[mySetOfStringsOrWhatever allObjects], nil]; is that...

Good facebook implementation tutorial for iPhone?

Does anyone know of a good tutorial that shows how to implement facebook into an iphone app? I have checked the facebook website and git but I can't get it to work. Does anyone have experience with this? Or know of a good tutorial? ...

iphone : xcodebuild command from terminal not working, How to ?

Hi, i am running xcodebuild command from terminal but getting the following error ATION (Release) === Check dependencies error: There is no SDK with the name or path 'iphonesimulator3.1.3' [BEROR]error: There is no SDK with the name or path 'iphonesimulator3.1.3' ** BUILD FAILED ** what is the possible reason i m getting this error ?...