iphone

How to make a ball move along the edge of a rotating rectangle in xcode?

I wish to make a lever and rotate the lever using accelerometer. I have this problem trying to place the ball on top of the lever and slide the ball along the lever according to the rotation. Would anyone drop me some hints or refer me to sample codes? ...

sms access project

i was searching on the net for a method which can inform an incoming message on receivers phone. but everyone said it is not possible but there is an app. which is approved from apple here is the url http://itunes.apple.com/us/app/tigertext/id355832697?mt=8 if i am not wrong this is doing similar kind of work...(i.e. accessing incomi...

UISearchbar overlapps with first cell

self.searchbarRect = self.searchDisplayController.searchBar.frame; self.searchDisplayController.searchBar.frame=CGRectZero; self.searchDisplayController.searchBar.hidden = YES; I use this code to hide the searchbar on a tableview. The problem is that when I show the searchbar again, it overlaps with the first cell of the table. self.s...

Why the dummy text can't load on my cell?

This is the tableView, as you can see, which cell, have two part, the left one, is a leftUIView, and right one, is the rightUIView. The red and green color can display, but the rightLabel I create can't show successfully. What's wrong with my code? Thank you. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath...

Consuming CMS content via webservice on iPhone

Hi, Am trying to find a Content Management System that I can use to produce and store content - text, images, pdfs, etc and then access this content from an iPhone using a native application via a web service. Can anyone recommand a good CMS for this? Thanks in advance, Will ...

storing images in iphone application

hi. im making an application that store multipe information like name description images for each entity. ( large number of entity). I have an issue in storing images in for this application. whats the best way to store them. database or document directory. and also im affraid that the images will increase the size of my application. wai...

How to control the position of "select box" ?

How to control the position of "input select box" when input character chinese? ...

Problem deleting objects from Core Data - crashing app

Hello, My app is crashing when testing on the device, but not on the simulator. It happens when I go to log out. I'm deleting all records from core data when the user logs out, code as follows: -(IBAction)logOut { UIAlertView *getConfirmation = [[UIAlertView alloc] initWithTitle:@"Confirm" message:@"Are you sure you want to logout...

What's the most accurate way to get timed actions on iPhone?

I want to have something happen about 6 times a second, consistently and accurately. I tried setting an NSTimer, but it had very low accuracy and consistency. What would you recommend? ...

App doesn't work when build for Adhoc

Hi, I'm facing very strange problem - my app is working nice on a device when build with Debug configuration, but when it's build for AdHoc distribution, it does nothing when started. It simply shows blank screen, no log messages on console, no errors nothing, so I don't have a clue of what's going on, what makes me desperate. I examin...

TextView over the y=415 (Objetive C - iphone)

Hello I am hopeless, I´m trying do a View in Objetive - C. I built the view, in Interface Builder with: View -> Scrool View -> Imagen View, two labels and a TextView. I have a funtion: -(void)Configurar:(NSDictionary*)Configuraciones This function set the position of components, the content text, the image, the size of the scroll v...

Dragging an image from a scrollview

This is driving me bonkers, have been on it ages and still can get the thing to do what I want! My view is set out like this: RootViewController contains (UIView)flipView FlipView contains (UiView)firstView FirstView contains a scrollview and a load of imageviews Scrollview contains a series of custom imageViews I can drag the cust...

How to realize the animation like the animation when app opened or exit on iphone?

http://stackoverflow.com/questions/825826/are-there-any-third-party-libraries-to-do-cool-view-transitions-in-iphone-os I have viewed above animation types and there's none... (I'm sorry for my broken English) ...

Return 1st from 1, 2nd from 2, ..., 11th from 11, ...

Is there a Objective-c function to return a NSString * from a NSUInteger, i.e.: 1 -> 1st 2 -> 2nd ... 10 -> 10th 21 -> 21st ... 31 -> 31st for the range from 1 to 31. Thanks! ...

iphone - view init issue

I have come across a strange behavior... In class A, at the viewDidLoad method I do: b = [[B alloc] initWithNibName:@"B" bundle:nil]; //init the B class (declared as B* b) [b setText:@"ABCDDEEE"]; //change the text of a UITextView in b note that b's view is not shown until a button is pressed. However, when I press it and go to b's v...

When should I use Class Method instead of an init Instance Method?

This is an example straight from Apple's documentation - @implementation MyClass - (id)initWithString:(NSString *)aName { self = [super init]; if (self) { name = [aName copy]; } return self; } + (MyClass *)createMyClassWithString: (NSString *)aName { return [[[self alloc] initWithString:aName] autorelease];...

Accessing unknown 'view' component of a property

I get an 'Accessing unknown 'view' component of a property' error, when I'm trying this: if (self.newsViewController.view.superview == nil) I have a synthesize and an import for NewsViewController. What I'm doing wrong? ...

Using core location on iphone simulator

I am developing an GPS based app. So I was wondering how could I simulate location on iphone simulator? I downloaded an sample app locateMe. This app does not work on simulator. Does simulator not support location api? Any help would be appreciated. ...

CATiledLAyer and Memory usage (IPHONE SDK)

HI there. I've tryed to develop a little magazine reader for IPAD I use a subClass of CAtiledLAyer whit drawInContex Method and I draw the pdf pages into a scrollView. So i've 2 problem, 1-when i try the app whit simulator all work fine but when i try the app on ipad the layer drawing it's slow , 2-the memory usage allways increases a...

Speed and direction of an animated UIView/layer

Hello everybody, Today my question is about Core Animation. Is the information related to direction and speed of an object (UIView/layer), moving (animated) on the screen, stored anywhere and directly accessible via method/property? Is this information available even in case of an object dragged by the user? Thank you. ...