iphone

Grouped style setting not taking effect from IB, UITableView

I've created a table view in an iPhone app using Interface Builder (IB). My table style is set to Grouped, and displays that way in IB. However, whenever I build and run, it shows up as a Plain style in the simulator. I have another view set to Grouped and don't experience this problem. Has anyone run into this problem before? The re...

iPhone dev question: NSMutableURLRequest, cannt set the _GET to my from in php

Hi guys, I have a php form, that is working. With that form I connect to a DB, where i get data out. :-) When I use the form from my Mac/laptop, i can enter the sata and I get the result. When i try to connect with this code under here. I can pass the form, and establich connection to DB, but my query, where I put country in, is empty...

warning:'UIResponder' may not respond to '-manageTouches:'

Hi, this is my program . //Interface file. #import <Foundation/Foundation.h> @interface reportView : UIView { } - (void)touchesBegan: (NSSet *)touches withEvent: (UIEvent *)event; - (void)touchesEnded: (NSSet *)touches withEvent: (UIEvent *)event; - (void)touchesMoved: (NSSet *)touches withEvent: (UIEvent *)event; @end //Implementati...

Developing WYSIWYG UI/Controller on iPhone

I'm trying to develop a really good and cute looking text message input controller like TTMessageController from three20 but with some simple WYSIWYG controls. For the first step I want to go super-simple and make it have Bod Italic and underlines only. I know it's a very general question but I want to hear... What are the approache...

UITextField: move view when keyboard appears

Hello! I'm currently working on an iPhone application with a single view, which has multiple UITextFields for input. When the keyboard shows, it overlays the bottom textfields. So I added the corresponding textFieldDidBeginEditing: method, to move the view up, which works great: - (void)textFieldDidBeginEditing:(UITextField *)textField...

Converting an UIview unto UIimage causing memory leak

Hi guys!! I'm developing an app for iPhone using a coverFlow view, when the app is building the cards it is using a UIView in order to add labels and other stuff. Then I convert the UIView into UIImage using the following code: UIGraphicsBeginImageContext(imageView.bounds.size); [imageView.layer renderInContext:UIGraphicsGetCurrentCon...

crashed on iphone but not on simulator

It is really mind boggling to find out many differences between the iphone and the simulators. I spent several hours trying to figure out why my application ran on the simulator but crashed on my iphone device. It turns out the culprit is sortedArrayUsingDescriptors. Are there more get-you like this? Please share with me. To share with ...

@synchronized() and NSLock differences

Hi there, I have a block of code that is accessed frequently and from either the main thread or several other background threads. I need to ensure that this code only gets processed one at a time. I'm currently using a @synchronized(self) { } block but I'm not sure if that's providing the correct protection. How does it differ from an ...

How to detect edit mode on iphone UITableView

For my iphone app, I have an editable (for delete) table view. I'd like to be able to detect that the user has clicked the "Edit" button. See this image: http://grab.by/It0 From the docs, it looked like if I implemented : - (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath then I coul...

iPhone: MKMapView Strange crash

Hi everyone, I'm having an issue with a MKMapView, hope someone can help me. I have a view that embed a MKMapView and a navigationController. I push in my navigationController another viewController then another one again. Then if I go back to the MKMapView and touch the map, the application crash. so MkmapView > View2 > View3 > View2 ...

iPhone SDK: Custom video player controls

Hello, In my iPhone app I have designed a custom video player, currently it is very basic with just a play pause and stop button, but I would like the user to be able to scrub, (I think thats the right word) the video like you can do with apple's original media player. So for Instance I would like to be able to take a UISlider and have i...

Why does -[UIWebView sizeThatFits:] give a larger size than document.body.offsetHeight/Width?

I am attempting to use a UIWebView to display some variable-size content, and I'd like to determine the full size of that content so that I can resize the UIWebView to fit the size of the content perfectly. My attempts at determining the correct height and width of the content, however, haven't been completely straightforward. The follo...

iphone application layout

Hi there, I'm trying to get started with an iPhone application, I had a look around at other questions but i'm still sorta stuck so hopefully someone can help... First thing is I'm totally confused with the whole view concept, I'm more used to visual studio so I'm going to use the term 'form' to describe what I have in my head. I want...

UIView getting disabled

I have a UIView that's starting about 600 pt's off the screen, but when it comes on to the actual frame, it seems to be disabled. I've tried using a UIScrollView, but also can't because I need to access the touchesBegan and touchesMoved methods form my UIView, so how would I enable interaction after it comes back on to the screen. And...

How to get port number for iPhone Chatting Application

I am developing a chat application. But Right now chatting is possible with only google because I know only google's port no. xmppClient = [[XMPPClient alloc] init]; [xmppClient addDelegate:self]; // Replace me with the proper domain and port. // The example below is setup for a typical google talk account. [xmppClient setDomain:@"tal...

How to keep an object in view of a scrollview while animation moves the object offscreen

Good day all; I have an UIImageView that I animate around a large UIView. The UIView is contained within a UIScrollView. Now, with small movement animations of the UIImageView within the UIView, if it passes a certain thresh hold (gets close to the edge of the screen), I will manually scroll the UIScrollView to re-center the UIImageVie...

Sending message to Twitter creates an error message

Hi, I'm trying to get the following code to run (it's from the Heads First iPhone Development book - page 81), it's a twitter app, and the code blow runs when you press a button to send a simple text message to twitter: //TWITTER BLACK MAGIC NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"...

iPhone multi view application design question

Hi! I have a question about iPhone app design approach... I have in mind to make some complex application and I think that the best base for my needs is "Tab Bar Application" template. Actually, I've been looking some apps on iPhone, and AppStore's design is definitely what I need; a Tab Bar based app with different options on the top - ...

Objects do not retain the frame that I give then when using CGAffineTransforms with Core Animation

Hi, I'm making a game where when a card is touched, it grows so that it is focused, and when you 'let go', it goes back to its original size and place. This seems pretty standard, however, when I add cards and move the hand around to accommodate different numbers of cards, touching the card makes it go to its original place, and not to...

How to build for iPhone 3.0 SDK?

Hi, I'm pretty new to iPhone. My dev env is setup, XCode has just two profiles: iPhone device 3.1.2 (base sdk) and iphone simulator 3.1.2, either one with release and debug. I fear I will run into problems now, if I ad hoc deploy to < 3.1.2 phys devices. How can I build for 3.0 base sdk only? Kind regards PS: stackoverflow is a great s...