iphone

Having issues with iPhone NSTimer invalidation.

Okay so I know I asked a similar question a while ago, but this is different. I now have two timers that go off on the TouchDown event of their respective buttons. On the TouchUpInside event I have respective code that tells each timer to [pressTimer invalidate] and pressTimer = nil. The problem that happens now since I added the second ...

Creating a custom uidatepicker - it takes up too much space!!

Hi, I would LOOOOVE to have the use of a UIDatePicker that is just one row displayed instead of three.   Three rows take up way too much real-estate!   HELP!!!   I am able to rotate and resize the control without any great stress, but have yet to figure out how to only display the one row. This is not what I'm chasing right this moment. ...

how to create a custom dialog login button for facebook

is it possible to create a custom dialog login button for facebook ...

Using core-plot, how can you convert a touched point to the plot space?

I have a very simple graph that I want to enable touch on, I have the first part working: plotSpace.delegate = self; and the method: -(BOOL)plotSpace:(CPPlotSpace *)space shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point { NSLog(@"touched at: x: %f y: %f", point.x, point.y); } How do I convert the point "point...

Marking an MPMediaItem (podcast) as listened to

Is there a way to update the 'listened to' status of an MPMediaItem from the iPod library? I've tried using MPMusicPlayerController in iPodMusicPlayer mode and it does not mark the podcast as listened to once it finishes playing. ...

Problem pushing URL's to in-app iPhone web browser

Hi, I have an RSS parser, which downloads a link to each item from an RSS feed. How do I make it so that when a user selects a row in the UITable, it opens my web view (made following this tutorial http://dblog.com.au/iphone-development/iphone-sdk-tutorial-build-your-very-own-web-browser/) with the URL of the item (which can be gathered...

Make a button start the app

So I have made a custom UIButton and added it to the code and made the connections in interfacebuiler. I want the button to work as a on and off switch, how do I do this correctly? I'm a beginner at iphone development and this is for a school project for this class I'm taking during the summer to get a head start for next semester. So ...

moving uiimage view on screen

I want an image view of some size say 25 by 25, to move in a linear motion from left to right and then right left continuously. Lets say the image starts moving from left, then at the time it reaches reaches the right, it should start moving back to the left, then this should repeat. I have this code, which lets the view move down, but...

Playing a custom sound.

Hi :) I want to develop an application for iPhone that plays mp3 files. Which framework and functions should I work with? Thanks in advance, Sagifw ...

UITablview cell text moves on its own??

i am creating a UITableview cell in the following way const NSInteger TOP_LABEL_TAG = 1001; UILabel *topLabel; static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell =[[[UITableViewCell alloc] initWithFrame:CGRectZero reu...

Running an older iOS version in the iPhone simulator

I want to test my application on older iOS versions. I am using weak linking for new frameworks and branches in the code for different OS version. But after some complaints from users running iOS 3.1.2, I need to do some testing myself. I don't have a separate iPhone for every iOS version. So, how can I run an older version of iOS in t...

Objective-C NSString Transformable attribute memory leak

I have a CoreData NSManagedObject subclass, TextNarration, that has an attribute of type NSString, textURI. That class implements the NSCoding protocol methods: initWithCoder and encodeWithCoder this way: - (id) initWithCoder: (NSCoder *)coder { if (self = [super init]) { self.textURI = [coder decodeObjectForKey:@"te...

Cannot create a view with a UIScrollView. Please Help.

Hello All, I am looking for some help for a program I am developing. Basically, it contains two views. The first view has a button and a action related to it leads me to my next view where there is a scroll view for three pages ( as in the PageControl sample given by apple.) I am using navigation controller to push the view from the fir...

Can an iPhone App create and send + receive and read a CSV file as an ATTACHMENT?

I'd like to introduce a feature in my iPhone App that allows the following: 1) creating and sending by email a CSV file from within my iPhone App. 2) importing into my iPhone App a CSV file created with 3rd party software and sent to me by email. These are the questions: 1a) Is it possible to actually create a CSV file from within the A...

How to create a custom date on iPhone

I'm trying to set some components of todays date with NSDateComponent like so: NSDateComponents *comps = [[NSDateComponents alloc] init]; [comps setDay:1]; [comps setHour:1]; [comps setMinute:44]; NSCalendar *cal = [[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] autorelease]; NSDate *date = [...

Pickerview within enclosing view

Hi, using iphone sdk 4.0. I have added a UIPickerView to a view. I want the UIPickerView to be NON transparent ( as it is) but i want the background view to have an alpha of 0.3. THis is so that the upper portion of the view (which is full size screen) is see through and the lower portion which has the picker is solid. However when i s...

Why does NSLog print an extra zero when logging this array?

Hi. With these variables: NSInteger dataStart; uint64_t dataSize[1]; const unsigned char *beginning; NSInteger bytesEnd; ...at these values: dataStart = 499 dataSize[0] = 427 beginning = 9060864 bytesEnd = 9061793 ...the following code: NSLog(@"dataStart = %d, dataSize[0] = %d, beginning = %d, bytesEnd = %d", dataStart, da...

Smartphone Memory Configuration

Smart-phones have built in ROM and RAM separately. Also a few phones has virtual memory support too. I would like to know what these memories are basically used for. I understand that RAM is available to user processes. But why do they have a big chunk of ROM? E.g. The wiki page for Droid Incredible says 512 MB DDR RAM 1 GB ROM (748 M...

Setting the active executable in Xcode

Hi, I have the same problem as this guy had : http://stackoverflow.com/questions/2332214/setting-the-active-executable-in-xcode I'm pressing the "option" key, and it does add more options, i'm choosing iphone simulator 3.1.3 , but when I press "run" , still the ipad simulator is running. The problem only appears when I choose "Iphoe ...

CABasicAnimation in a CAGradientLayer not working - what am I doing wrong?

I have a custom UITableView cell which has a button and a label. I fire a method when someone taps on the button, and then color that row. It's all working fine. What I want to actually do is user taps button, the row is colored in a gradient (it works now) The gradient fades away My code is below (BackView is the view in my custom ...