iphone

Custom ProgressBar widget

I am trying to do something similar to this but in Android. In Android I can extend the ProgressBar but I am doubting of how to add the TextViews on top. In iphone it was easy because I can use absolute positions, but not here. Any ideas? EDIT: I decided to use SeekBar instead of ProgressBar to add the thumb drawable. I commented be...

IPhone SDK - How to detect variable type (float or double)?

Hello, How do I detect whether a variable is float, double, int, etc.? Thanks. ...

updated to iOS4.1 and iAd "test advertisment" not showing up on simulator

Hello, I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError. bannerViewDidLoadAd is never invoked. I know I'm supposed to see a "test advertisment" Ad, but nothing shows up, because the function bannerViewDidLoadAd is never being invoked. I've looked into other questions, but didn't find an a...

iPhone app crash

Hi all, I have a problem with my application. It crashes after few times of working with images and I have no idea why. I have a TabBar, in one item of TabBat I have a navigation controller. In the root controller of that navigation I have a two buttons. One button is to get an image from camera or photo library, the second button is to...

[iphone sdk] UIButton with a ttf font

Is it possible to use UIButtons with my own true type font? I found the FontLabel open source that can use ttf with UILabels, but unfortunately I can't set my UIButton's titleLabel to a created FontLabel. Can someone offer a simple solution to this? Or should I just not be using UIButtons altogether and instead use something else? I ...

Appcelerator: Scrollable view (with touch disabled): buttons inside won't fire

Hi people, So I have a scrollable view, which I dynamically add views to. Inside these views, I have a button that should slide the view to the left or to the right. Now what seems to be odd is, whenever I have the touchEnabled property of the Scrollable view instance, set to false, my buttons inside the dynamically created views are n...

beginAnimations:context: not working with color?

I am a little puzzled why the following is not working, button_ONE does a nice fade, but pressing button_TWO just snaps the color to black with no fade. // FADES OUT OVER 1.5 Secs - (IBAction)button_ONE:(id)sender { NSLog(@"FADE ALPHA"); [textField_TOP_01 setAlpha:1.0]; [UIView beginAnimations:nil context:nil]; [UIView s...

Curve text on existing circle

For an application I am building I have drawn 2 circles. One a bit bigger than the other. I want to curve text between those lines, for a circular menu I am building. I read most stuff about curving a text that you have to split up your text in characters and draw each character on it's own with the right angle in mind (by rotating the ...

Why is my UIView category causing warnings?

I added a category to UIView to hold some transition helper methods. The methods are all working; however, I get compiler warnings: warning: 'UIButton' may not respond to '-fadeOutWithDuration:' My "UIView+Trans.h" file looks like this: @interface UIImage (trans) - (void) fadeOutWithDuration:(CGFloat)duration; @end My "UIView+T...

Is it possible to put a badge on a UIToolbarItem?

Is it possible to put a badge on a UIToolbarItem? I have four items on my bottom UIToolbar, but I need to put a badge on it (similar to push notification badge with a number) to notify the user of something. How can I do this? ...

How Do You Embed a Provisioning Profile in an iOS App

I read in the iOS Enterprise Developer Program docs that a provisioning profile can be embedded with the application. I am wondering how this is done. Is it simply added to the Payload directory of an IPA, or included in the project directory? I also wonder whether this technique is generally available for all deployment modes/Program...

iPone CoreLocation framework not working on XCode SDK 3.2.4 with Simulator 4.1 and XCode SDK 3.2.3 with Simulator 4.0.X and iTouch device with OS 4.1

Hi All, Facing serious problem. Implementing CLLocationMangerDelegate and using - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation but method - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error{ NSLog(@"%@"...

Ipad orientation problem with modal view

Hi, i've a problem with a modal view rotation. I create a main view in portrait mode, then i create a modal view. Everything works fine: i can rotate the modal view and all orientation are supported. If i create the main view in portrait mode then rotate in landscape and after that i create my modal view... the modal is in portrait mode ...

iPhone: Pan to move image using touchesBegan, touchesMoved, and touchesEnded.

I have an image in a view which contains a 9x9 grid. I want to move the object along the grid, which is made up of a column array(9) inside another array(9), using a pan movement. The image should move square to square in the grid. The code below is what I have so far. The problem is the image jumps 3 - 4 squares at a time. It is much to...

iphone - Scaling Images are very slow - Help

Hello All I am scaling images by myself using the following codes. The code is fine and the images are scaled without problem. UIImage *originImg = img; size = newSize; if (originImg.size.width > originImg.size.height) { newSize = CGSizeMake(size.width, originImg.size.height * size.width / originImg.size.width); } else { newSi...

Is there a simple way to edit / modify a UILocalNotification

Is there an easier way to edit, for example, the alertBody property of an already scheduled UILocalNotification ? For now, I just cancel the notification and schedule a new one but when the app needs to do this for 3 or more notifications, it takes long time to execute... ...

Synthesize property errors when compiling iPhone app.

I am following the tutotial on Apple's website for building your first iPhone application, as this is a field i would like to be involved in. I completed the app, but then decided to merge it with another app. (One simply changes an image when tapped, one displays text from a text box when a button is tapped, so not too tricky to combi...

counting the number of .plist files in xcode

In xcode, I have many .plist files called : ImageData1.plist, ImageData2.plist ... etc how can I get the number of .plist files which start with the name "ImageData" ? ...

iPhone - Post on Friends wall

hi I am using FBConnect to post on users wall.... But is there a way I can post on friends wall?? Any help is appreciated ...

Access switch and textfield in tableview from another method

I'm having a tableview with a couple of cells with 4 uiswitches and one textfield inside. Simple question. I need a way to read all the positions of the switches and the string inside the textview by clicking a button. Tableview, textfield, switches and button is working fine. Just need to access the values of the switches and textfield ...