cocoa-touch

CAShapeLayer slowing down interface rotation

Hi, I am trying to move some custom drawing code from a view into a CAShapeLayer, which then get added as a sublayer to the original view's CALayer. This also works well, but when rotating the device, the animation starts to stutter, e.g. you just see the frame in the original orientation and then the final orientation, with at most one...

How to make iphone apps in two different languanges?

Hey guys I was just wondering how to make apps in two different languages? I think that I should create two files with all the variables in different languages each. Is that right? Help please Best Regards Carlos Vargas ...

Using Global Variables to communicate values between classes

So my simple idea is to create an app that allows the user to report their location's latitude and longitude coordinates via email. You tap the button, the email screen comes up via the MessageUI framework, the To, Subject, and Body fields are already pre-entered, all that's needed is for the user to hit "send". My problem, is that I n...

how to get touchesMoved events more frequently?

I'm tring to track a user touch moving across the screen, but at times my app receives touchesMoved:withEvent: with locations far apart, even by 70 pixels. I'm keeping the runloop fairly fluid, but I have CoreAnimation somewhat under pressure. I'm puzzled because I'm noticing the same problem even on the simulator. ...

Select tableview row programmatically

How do I programmatically select a tableview row so that - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath gets executed? selectRowAtIndexPath will only highlight the row. ...

How many touches can be detected at once by the iPhone?

How many touches can be detected at once by the iPhone? ...

About creating vertical tab-based iPhone app.

I just want to figure out how to create vertical tab-based app like this one. Tab is generated dynamically when you push the add button. My guess is UIImageView(UIButton attached?) + UITableView as a set of component? But the whole tabs are scrollable. Any idea? Thanks in advance. Ref image link: https://devforums.apple.com/servlet/Ji...

Intercepting all touch events

I have a UIViewController inside of a navigation based app. I'd like the view controller to receive all touch events from child objects, such as a tableview and navigation bar. Or, any other technique that is able to intercept all touch events. Right now, the following never executes inside of the view controller: - (void)touchesE...

Getting data from one table back to a previous one in an iPhone table based navigation app

Hi all, I'm confused about how to implement a specific piece of an app. The data is being collected in a Grouped Table, but certain rows drill down to another screen to allow the user to choose something. So for example, I would have Name: Surname: Age: How do I get this Age value back to the first view when the user taps done ? ...

Reorder-able UITableView with Max # of Rows per Section

Hi guys, first off, I'd like to say that this is my first time posting on StackOverflow. I'm new to iPhone dev and programming in general, having recently completed Stephen Kochan's Programming in Objective-C 2.0, and parts of Erica Sadun's iPhone Cookbook. Just reading answered questions on this site has helped me a lot, so I owe a big ...

Laying out & sizing of subviews in a UIViewController

I have an app with with a UITabController and each tab is a UINavigationController. The root of one of my UINavigationControllers is a UIViewController. Inside that view controller's view, I want to layout some subviews, but I'm confused as to where & how to lay them out in a way that will be resolution independent (i.e. not hardcode va...

Resize font size to fill UITextView?

How would I set the font size of text in a UITextView such that it fills the entire UITextView? I'd like the user to type in their text, then have the text fill the entire UITextView. Any help is appreciated! ...

Character replace in String from database (Objective-C)

Hi, I have a UITableView and each row I cliked display a UIViewController containing information store in my database like this: [self.myViewController.myViewControllerDescription setText:[self.fiche description]]; The information store in the database contains HTML syntaxe ( < BR > ) and I display them in a UITextView (as you know ...

Make my view as pretty as NSAlertView

Hi all, I have a modal view in my iPhone app (Xcode, Objective C++). How do I make it look as pretty as the system UIAlertView? Specifically, I want: rounded-rect window with a border around it semitransparent background subtle highlight near the top The transparency can be probably achieved with a less than one alpha channel on the...

Problem animating a Parallax Layer in Cocos2d-iPhone

UPDATE: I'm a doofus. What's happening is obvious. The Animation first sets the layers position to it's current position. But I've told the layer to divide any setPosition coordinates by pRatio. So it's not going to CGPoint(0,0) but something like CGPoint(0.032, 0). I've fixed it like this: - (void) setPosition:(CGPoint)point { if(!...

How to make UITableView(Controller) catch multitouch events?

I have a subclass of UITableViewController that works as expected. I'd like to capture multitouch events for the whole table to do something with them. The way I understand it, I should make the tableView of the controller be a subclass of UITableView. In that class I could capture the touchesMoved etc events. But I also understand tha...

UIImageView and UIImage of equal size

I came across a weird scenario in my code the other day: I have a UIImageView that loads an image with setImage:. The UIImageView is prior initialized with a frame having the exact size of the image (41*41 px). I also set the content mode to UIViewContentModeCenter, which should ensure my image is never scaled. Now when I look at my im...

CLLocationManager Simulator to simulate car moves ?

I'm looking since quite a long time something like a CLLocationManager simulator that would enable me to simulate GPS positions (CLLocation instances that could be retrieved through the CLLocationManager standard delegate mechanism) along a predefined route for instance (with a KML or GPX file as input, or whatever, but KML would be ni...

NSXMLParser ownership on data

Hi, I init my NSXMLParser with a mutable data, that I get from the internet. I wonder whether the parser releases it on its deallocation or I have to release it after the parsing? Thanks ...

Java RMI equivalent in Cocoa ?

I need to port a Java Application which uses RMI to Cocoa Touch ( iPhone/iPod Touch ). It's a small application, maybe 600 lines of code thanks to the RMI simplification. But I was wondering what are my options to replace the RMI code in the iPhone/iPod Touch platform. Thanks!. ...