I have custom uiimage views that I want the users to be able to scale and rotate. These images are small and multitouch pinch-to-zoom on the imageview itself isn't feasible. So I thought I can perform pinch-to-zoom on the superview and somehow make the imageview respond to rotation and scaling.
I gathered multitouch information on the s...
I have an application that allows the user to edit multiple text fields and views. Rather than mess around raising each view to the top when the keyboard is active, I decided to instead make one textView for editing and hide/show it when input is needed, then transfer the data when it is done. To move focus to the new textView, I call it...
Does anybody know how expensive a tcp connection is on iPhone?
For example, if I have to download 8-10 small files (2-6 kB) from a web server does it make sense to create 8-10 NSConnection requests or would be better to make one request to download 8-10 files at once (supposing that server supports such kind of requests)?
...
Hi,
I dont understand how to change the zPosition of a view, i try this but nothing happens :
- (void)viewDidLoad {
[super viewDidLoad];
UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)] autorelease];
view.backgroundColor = [UIColor blackColor];
view.layer.zPosition = -400;
[self.view ad...
The following is my XML file. i am parsing it with NSXMLParser.
But parsing methods have not been called.
Any Solution ?
Thanks.
<?xml version="1.0" encoding="windows-1252"?>
<typelokale>
<post>
<deptid>1</deptid>
<department>Kontor</department>
</post>
<post>
<deptid>2</deptid>
<department>Butikk/Servering</dep...
Hello,
I have a NSURLConnection that receives data output from a url pointing to a php script on my server.
Most of the time everything works fine and the data is retrieved in its complete form.
However, sometimes I receive NULL or broken (ie the bottom half) of data at:
- (void)connection:(NSURLConnection *)connection didReceiveData...
Hi,
I have the following problem.
I have an iPhone app and want to upgrade to universal
When I do this, I get the expected MainWindow-iPad.xib.
But the size of the window is hardcoded to 320x480.
Also, there is no view in the window.
I red, this should be automatically iPad-sized, so I am assuming I am doing something wrong.
What exactl...
i'm trying to change the position of my image view after time delay like in the following code
CGPoint pointOne=CGPointMake(150, 200);
UIImageView *sampleImage=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"hello.png"]];
[sampleImage performSelector:@selector(setCenter:) withObject:[NSValue valueWithCGPoint:pointOne] aft...
in my previous question i was given some code in order to make up this statment.
favoriteArray is an Mutable Array...
if (![self.favoritesArray containsObject:@"added"])
{
[self.favoritesArray addObject:@"added"];
}
else
{
[self.favoritesArray removeObject:@"added"];
}
//NSUInteger newRow = [self.favoritesArray cou...
Hi,
I was stopped in my work by a small problem: my application contains some web queries, which are almost immediately performed if wifi connection is used, however they need a couple of seconds to finish in case of 3G or even EDGE connection. During this period, I would like to indicate to the user that the query is in progress, e.g....
This may be a newbie question, but could anyone please explain the difference between UITouch and UIGestureRecognizer?
...
Hi all,
I'm working on the connecting devices through wifi to each other.
When i connect device to wifi it should show me the list of devices in network, and i should be able to choose any one of it to communicate with.
Is their a simple way to searching through the network and get the list of devices?
If their is, please guide me for?...
Hello!
Can anyone tell me please whats the easiest way to use Keychain to store and read username and password values?
Thanks!
...
I am trying to concatenate and display string and number together in a table view cell. Is there any mechanism to convert both of them together to a label string?
...
Hi,
I have a UITabbarController set by the Interfacebuilder.
The tabbarcontroller has 5 tabs, the first is a welcome page, and the second is a UITableViewController. Both have a NavigationController. The 2nd tab should show a category list.
When I launch the app, all is fine. When I press the 2nd tab, it load the view perfectly with the...
I have created a UIMenuController and have set it a custom menu item like so:
UIMenuController *menuController = [UIMenuController sharedMenuController];
UIMenuItem *item1 = [[UIMenuItem alloc] initWithTitle:@"Do This" action:@selector(item1)];
[menuController setMenuItems:[NSArray arrayWithObject:item1]];
But I wanted that object to ...
iPhone Simulator is version 4.0 (211.1)
I know, this is a weird question for S.O., but I figured if anyone has seen this, it would be someone here.
I have a MacBook Pro with a 22" lcd attached. I run the 22" as my "main" screen with the dock and I use the MBP's display as a secondary.
I want the iPhone Simulator to run on the actual ...
Hello,
I was wondering if there was any way to force a UITextView to use right to left text direction for some languages? Like Microsoft Office on a computer does.
...
I am trying to connect from my iphone to a socket server running on the same network on my computer? How can i get the local ip address of the computer that is running the socket server?
...
I have some 3d models I am loading into an OpenGL ES scene. If I simply load all of them I'll get them placed one over the other since they' ve been all centered into the coordinate system origin when created in Blender.
I need to position them in different places so what I am doing right now is this for each model:
glMatrixMode( G...