Hello guys!
I want to rotate my UIImageView and set the size according to the aspect ratio.
But I have some problems with that. First I paste here my code, then I explain the problem.
imageView.size = CGSizeMake(myWidth, myHeight);
[imageView setContentMode:UIViewContentModeCenter];
So these two lines set the size and the contentMode...
I have a gradient that has rounded corners that I an using for a custom UITableViewCell background. I am trying to apply a stroke to the path but cannot quite do it, and can't see where I am going wrong.
CGFloat minx = CGRectGetMinX(rect) , midx = CGRectGetMidX(rect), maxx = CGRectGetMaxX(rect) ;
CGFloat miny = CGRectGetMinY(rect) ...
My development certificate has expired. What is the correct method of renewing it?
Do you revoke the expired certificate & submit a new Certificate Signing Request?
Do provisioning profiles have to be recreated?
Are there any side-effects of doing this?
...
I want to do a conditional statement in my prototype such as:
if (${EXECUTABLE_NAME} == "MyAppName")
as I am using multiple targets for the custom skins of the app.
Thanks
...
Newbie alert! I have a simple calculator with 4 text input fields. When I tap into a field the number pad appears and I enter numbers. No problems so far. Now, when testing this using the simulator I press return on the keyboard and using TextFieldShouldReturn my fields perform their calculations perfectly and the number keypad disap...
I have a simple screen in my iPhone app where I want a rectangle of 320x100 at the bottom of the screen to capture a touch. Here is my code inside touchesBegan:withEvent:
for (UITouch *touch in touches) {
CGPoint touchPoint = [touch locationInView:self.view];
NSLog(@"touch @ %f, %f", touchPoint.x, touchPoint.y);
// build...
I'm making a game with iPhone. I found iPhone OS 3.1 supports v-sync with CADisplayLink class. I believe v-sync is ideal solution for game graphics, I'll use this only. (no fallback to NSTimer) But SDK doc says this too; CADisplayLink is supported in only OS 3.1.
Is there a hardware model which cannot support CADisplayLink class?
...
Hi,
I decided to switch to use Core Data to save all the data in my navigation application. What are the steps necessary to make Core Data available in my application?
I don't want to start a new project with the check box 'Use Core Data for my application' and copy all the existing codes to the new project.
Anybody has any guides or ...
Hi
I just have a basic (noob) question about cellForRowAtIndexPath get called?
I'm working through example code and I don't see it explicitly called anywhere?
Does any component of type UITableViewComponent automatically call this function when it is created?
Thanks
...
Hi,
I have a TabBar application with several nibs, most with a NavBar. It works pretty well, except for the "views" that are inside the "More" section of the tabBar.
As expected, it will put a NavBar to return to the "More" list, as well as the NavBar i've placed in the nib.
I've tried to remove the view controllers from the moreNavig...
I want to clip specific area from texture and given set of coordinates.
So I can use CGContextMoveToPoint and CGContextAddLineToPoint to clip it:
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(NULL, pageWidth, 480, 8, 4 * pageWidth, colorSpace, kCGImageAlphaPremultipliedFirst);...
Hi,
I'm tying to implement some test cases for my iPhone app. I have successfully set up the UnitTest-Target as described here: iPhone development guide
I'm also able to build a simple test case:
- (void) testPass {
STAssertTrue(TRUE, @"");
}
But when I'm trying to instantiate a class that has some methodes that return UIC...
Is it true to say that when using integers when programming for iphone that you do not synthesize them and that you do not release them.
If it is true could somebody explain why?
I get errors everytime that I try to.
Also if I set an @property for an integer value I too get errors
...
Well like many other I encountered some problems while uploading my binary to appstore.
This is the error that I see
"The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate."
I have :
created distribution certificate and I have private key in the keychain.
created the ...
Hi there,
I am using SQLITE database in my iPhone app. I have a refresh button on my home screen and on click of that refresh button I usually fetch the data from my web service and store it into my database. In normal scenario it works fine but when I click my refresh button 4-5 times frequently my app crashes and My app log Shows "Unab...
Guys,
My method + (void) initialized is not called and I'm very new in Objective C. The code is in the book iPhone Game Development and I have to call the method explicitly to work. The code in the .m file is that:
ResourceManager *g_ResManager;
@implementation ResourceManager
//initialize is called automatically before the class ge...
I develop some iPhone apps for clients, but I prefer working on a Linux machine. I know that there are certain things you need to do on a machine running OS X, like build the final distribution, run the iPhone app in the simulator, etc.
But I was wonder how much of say, the model layer, of an iPhone app you could build and test on a Lin...
when you click on the Updatebutton to update the UITableView.
.h
NSArray *sortedArray;
NSMutableArray *animals;
.m
-(void)update{
[self checkAndCreateDatabase];
[self readAnimalsFromDatabase];
[self sort];
[self.tableView reloadData];
}
- (void)sort{
...
Hi
I am sure this a pretty common problem: I have a UITableView with quite some entries in it. If you click on a cell, you get to see some details about the selected object (done with a navigation controller). Now if the user hits the back arrow at the top of the screen, he successfully returns to the old table, but this is now scrolled...
I'm working on an application that uses the iPhone GPS to acquire a location track. To save power, I want to acquire location data while the screen is off. I've learned the trick of playing a silent audio file to keep the location acquisition going while in sleep mode. I still have an occasional problem with location acquisition stopping...