Hi, I've got a small problem. I've got an array and its size changes when passing to a c-function from an objective-c function.
void test(game_touch *tempTouches)
{
printf("sizeof(array): %d", sizeof(tempTouches) );
}
-(void)touchesEnded: (NSSet *)touches withEvent: (UIEvent *)event
{
game_touch tempTouches[ [touches count] ];
...
I want to adjust each cell height according to the dynamic data that comes from web. So, how can I fit the height of cell according to each data ?
...
I have an NSArray of strings. I have to place each string in a cell of a table. How to get the string of the array into an NSString ?
...
Hey guys, (relatively, I believe) simple question here,
I have a UITableViewController with its UITableView, with its determined number of cells. If a user taps on a cell, an image is inserted into the respective cell's imageView property, like so:
[self.tableView cellForRowAtIndexPath:chosenPersonIndexPath].imageView.image = [UIImage ...
In the development of my first serious iPhone application (Meaning I'd like to actually get it out on the AppStore), I needed a good way to represent my data. Instead of going with core data, I (stupidly, I think) decided to use classes to represent my data.
I created three classes, MMDot, MMShowMovement, and MMShow. The MMShowMovement ...
I have written an application using opengl es view. Now I want to add a uitableview to display on the screen.
However I am needing some guidance on how opengl es view and the other views play together nice.
For example I have read some things that would lead me to think I need to pause the opengl view when the table is displayed.
Can...
How can I save and open photos from the iPhone's photo library from my app?
Code would be helpful.
...
Hi,
I usually use this function to display an entry at the indexPath of my tableView:
self.audio = (Audio *)[appDelegate.fichesAudio objectAtIndex:indexPath.row];
Or I do that to display the first entry in my Array:
self.audio = (Audio *)[appDelegate.fichesAudio objectAtIndex:0];
How can I display all the entries in my array and n...
I am new to iPhone development.
My app is working fine but after using it for some time and performing all the functionality sometimes a view does not open. The view contains the custom cell which contain a UIImageView and UILabel and UIImageView After using the app for long time the cell only shows the UILabel and click on cell it s...
Hi, all!
I'm developing a game in which I want my image to reduce in size gradually. I'm reducing the frame size gradually in my code when it works fine. [I've already used CGAffineTransform and it doesn't suit my requirement.]
-(void)function
{
ravanImage1.frame=CGRectMake(150,((ravanImage1.frame.origin.y)-5),q,z);
if(r...
Hi, all!
I'm developing a game in which I'm reducing the frame size of an imageView. When I'm introducing a condition using while loop, I'm not able to see the image reducing its size gradually, since it immediately jumps to the final result. So, I want to introduce a delay after every instruction so that I can see the effect of i...
My iPhone application was rejected solely for using the (very safe, it seems) private method +setAllowsAnyHTTPSCertificate:forHost: for NSURLRequest. Is there a non-private API to emulate this functionality?
...
I'm trying to prompt the user (once, I record it) to upgrade the iphone app if it is out of date. I've found a few sites that explain how to get the link to your app in the app store once it is already there. Here's one for example (http://bit.ly/6QIC40).
The problem is, all these guides require the app to be in the store before you c...
I'm working on a Cocoa-Touch app, it uses CoreData and has some NSPersistentObject subclasses generated by the XCode model editor.
I've noticed that recently, when saving the context I get an error which has as user info the following part:
(gdb) po ui {
"Dangling reference to an invalid object." = <null>;
NSAffectedObjectsErro...
I'd like to animate the transition from a subview back to the super view.
I display the subview using:
[UIView beginAnimations:@"curlup" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[self.view addSubview:...
I want to use insertRowsAtIndexPaths method to insert a row to a UITableView, but I don't know how to make "indexPaths" property for this method.
Please help me!
...
Hi All
I have two UIImageView on the UIView.
Each UIImageView have one UIImage. Now i want create an one UIImage from two UIImageView.
Please give the suggestion how can i do this.
thanks
deepika
...
I have an instance variable lat (NSString) in my App Delegate. What i want to do is set this variable equal to the user's current latitude in didUpdateToLocation:fromLocation, such that i can access it from a different view. This is key. So i have this code:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLoc...
Is it possible to embed git in the iPhone app? Only in a passive mode, i.e. to be able to read commit messages (with date and user) and diffs given some online git repository in order to present it in some readable table views?
...
I am currently working on a software to control aMule status of my server through the iPhone,
i created a socket that spits out xml which should be parsed out, but because NSXMLParser is event-drive, i'm having problems in understanding how this could work...
I thought of this type of XML structure, if you have ideas of a better way to s...