iphone

UIScrollView is not displaying added view in fixed position.

I have added three view in the scroll view and every subview has buttons. On the tap of the button I am presenting model view controller. When I dismiss the model view the subview(on which button was tapped) is getting uplift. How to resolve this issue? ...

Display NSMutableArray in Table View Cell

MY question is how to display arrayData in table view cell? I want to set the table view cell's label text to the 'ename' from the data parsed. Please help me out. I am newbie to Iphone Development... Thanks in Advance - (void)viewDidLoad { NSString *url = [NSString stringWithFormat:@"http://mmabigshow.com/app/get_result_from_quer...

Doing comparison on NSDates in different timezones?

Hi I have an array of NSDates which I build from strings using [NSDate dateFromString] In the xml I parsed to get the string there was also a timezone string. As far as I can see in the manual NSDate does not in it self deal with timezones. Do I need to always store this timezone value somewhere and pair it with the belonging NSDate eac...

unable to extract image url in xml parsing in iphone

Hello, I am quite new to the iphone development, I am using xml parsing to parse contents of a feed this feed contains this line <enclosure url="http://www.abc.com/wp-content/uploads/2010/01/abc.jpg" length="64690" type="image/jpg" /> no I want to extract http://www.abc.com/wp-content/uploads/2010/01/abc.jpg XML structure is like t...

Open source user tracking on the iPhone

Hello, I would like to track certain actions (e.g. how often an app is used) without using solutions from companies such as Pinch Media or Admob. Do you know any open source project, which I could use as a starter for my own system? ...

Implement Back action into UITabBarController

Hi, I have a controllerView (MenuControllerView) with a button inside, when I click on the button a new ViewController will appear with a TabBarController created programmatically like this: UIView* topView = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,480)]; tabBarController = [[UITabBarController alloc] init]; viewController1 ...

MPMoviePlayerController problem when play a movie

hi .. i put a movie when my application will lunch . just like gameloft games . so when application has lunched , movie plays fine but before the move plays .. my FirstViewController xib file show first then moview start to play ! why ? here is my code : - (void)applicationDidFinishLaunching:(UIApplication *)application { NSBundl...

I want to put textview on navigation bar for setting title at runtime through the simulator in objective-c

i want to put the textview on navigation bar to set the title by user through the simulator at the run time. ...

iPhone - TTPhotoViewController crops images

Hi I am using a TTPhotoViewController subclass in my project to display a series of images downloaded from the web. Some of the images which are not the same aspect ratio as the iPhone's screen are cropped out. I tested this with square images of 400x400 px and all such images seem to be cropped out towards the edges. I cannot zoom out...

Simulating location updates on the iPhone Simulator

Hi, I want to allow users to set the GPS information on the iPhone Simulator via GUI. But I'm not sure how to archieve this - it seems that this tool called iSimulate does this somehow by installing an own SDK. But I can't figure out how they "override" / "hack" the simulator by that. Thanks! ...

FBConnect: session:didLogin never called starting from the second time the user tries to login ?

I am trying to use the FBConnect SDK to connect to Facebook. Everything works fine the first time the user tries to login: the delegate method session:didLogin gets called, then I am able to acquire the extended permission to update the user's status and to upload a picture. However, when the user taps the logout button, trying to connec...

How to get each pixel coordinates of any shape in iPhone

I am using UIView subclass to draw an alphabet using QuartzCore Framework.Using this code only hollow characters are drawn(By Making the stroke color- blue color).Here I need each pixel position (coordinates) of the character that is added on current view.Please give me an idea how I will get each pixel point coordinates(Only the blue po...

how to split a string on the iPhone?

I have got below value(dynamic) from the server: drwxr-xr-x 9 0 0 4096 Jan 10 05:30 California Now i want to get valu like this. drwxr-xr-x 9 0 0 4096 Jan 10 05:30 California Please help me for this question ...

OpenGLES 1.1 and 2.0, supporting both

I have 2 separate renderers, one for 1.1 and another for 2.2 I have a bunch of Items which hold image information and the texture handle generated by whichever renderer I am using. Items are just dumb objects and I don't want to introduce any OpenGL specific functionality into them. The problem is, I need to store their texture handl...

How can I update a view in the iPhone every time just before the view is displayed?

I have an application which has 7 tabs with associated views and view controllers. I need a way to update each view when it is selected. I have searched and searched, but cannot find a way to do this. viewDidLoad will not work, as that only is fired the FIRST time a view is selected. Capturing the selected tab in didSelectViewContro...

Using iPhone touch & drag interface for intuitive List creation

1) I want to create a List by touch and dragging icons from a Master List. 2) Also have the ability to Delete items in this newly created List or Rearrange their order. Is there some code sample one could look at or possible design pointers on cleanly accomplish this functionality. I realize UITableView could accomplish this. But doi...

HTTPS with self-signed certificate in the app's keychain

I have to connect my iPhone app to a server with a self-signed certificate via HTTPS. I cannot change the certificate or the server. Since I don't want to accept all self-signed certs, just this one, my idea was to import the cert to the apps keychain (reading the cert from file and adding it to the keychain with SecItemAdd). If I run ...

Tab bar navigate to root view

I have a tab bar based application with navigation on each tab bar item. When i navigate to another view on any tab bar item and click on on tab bar item,then root view controller on that tab bar item is called. Its like PopToRootView . Can we disable this situation? ...

How do I determine the location of each pixel in a square drawn via Core Graphics?

Hi, I am trying to get each pixel point of a Square drawn using Core graphics.Here by making the stroke color black color,I am drawing the Square.Please give me an idea how I will get all pixel point on which this square is drawn. - (void)drawRect:(CGRect)rect { CGMutablePathRef path = CGPathCreateMutable(); CGContextRef ctx =...

UISegmentedControl delegate/Touch Events

I have a UISegmentedControl that has six segments, I want them to call a method when the value changes, but also when each segment gets a UIControlEventTouchDragIn because I want a UILabel to show up with it's name when the person is trying to select something on it and drags their finger across the control, but the segmented control doe...