I have a sting that is equal to a text field that i want to insert inside of a UIAlertView.
NSString *finalScore = [[NSString alloc] initWithFormat:[counter2 text]];
UIAlertView *myAlertView = [[UIAlertView alloc]
initWithTitle:finalScore
message:@"You scored X points"
...
Hello,
I am working on a view that would allow me to display large amounts of text, and to move through it by showing a page at a time and allowing the user to scroll right and left.
I thought I could do it by putting a UITextView inside a UIScrollView which has the pagingEnabled property set to YES along with setting the content width...
Hello all,
I have a UITabBarController in my application. In the first view of this controller I have a UINavigatioController and user can navigate to multiple views through this NavigationController. In the rootview of this controller I have my frontview or main view of the application which have an info icon, which flips the screen to...
hi all,
how can i convert the .wav file in to nsdata ,now is it possible to convert that nsdata in to nsstring ?
thanks for any solution
...
I'm creating an iPhone app that needs to add a custom category to extend uinavigationbar. Can anyone give me a code example of how I would create and implement this category to extend this class?
...
Hello!
I`m trying to add an annotation when the map is loaded and the region did change:
How Can I do a mapViewDidFinishLoadingMap and when is done a regionDidChangeAnimated??
Thanks
Tony
...
Let's understand the my requirement / question.
I have to develop following things in my application.
Application starts with a view controller ( obviously )
Now, after loading the view controller
"Touch me" characters should enter on screen animating, animation direction should be random.
OK. Let me clarify again.
The aim of questi...
My company is starting to get into iPhone development. We'd like to keep our iPhone business segregated from our other businesses, so in the App Store, we'd like to be known by a different name. For example, although our company may be legally Company, LLC, we'd like our apps on the App Store to appear to be from a different company na...
I have a UITableView that contains text field in each row. The text field is allowed to take only numbers and decimals. I have a transparent background button to help users click on the view to dispose the keypad when it is up. The text fields at the bottom of the view are getting covered by the keypad, so I wanted to move the view by ca...
I'm about to release my first app and I'd like for it to be able to be downloaded over 3g.
The binary is ~14MB, but when I compress it to a zip file it is just over 10MB. It's possible to cut out some content in order to squeeze it into 10MB, but I'm not sure if I have to cut out less than 1MB or ~4MB.
My question: When downloading a...
Hello,
My goal is to create a bigger UISlider with 35 pixels height for the thumb image.
I subclassed UISlider and added the method :
- (CGRect)trackRectForBounds:(CGRect)bounds
{
return CGRectMake(bounds.origin.x, bounds.origin.y, self.bounds.size.width, 50);
}
Then I set the thum image from my controller using setThumbImage:
...
I'm trying to fetch a bunch of records of a certain type, based on a list of types defined by the user…
[fetchRequest setEntity:[NSEntityDescription entityForName:@"myRecord" inManagedObjectContext:self.managedObjectContext]];
NSSet *shipTypes = [NSSet setWithObjects:[NSNumber numberWithInt:70],
[NSNumber numberWithInt:71],
[...
Scenario
Saving a 320x480 view as an image in the user's saved photos album.
Problem
Always saves a 800x?, low quality JPG.
Using the normal renderInContext/UIImageWriteToSavedPhotosAlbum method to save a view to the library. I've tried converting the UIImage to a PNGRepresentation then using that data to make a new UIImage - it still ...
I'm using a UIImageView as the accessoryView in a UITableViewCell that I'm creating programmatically. I've tried everything I can think of to set the accessoryView's alpha property, but it's not working. I'm able to set the hidden and opaque properties with no problems, but alpha is hating all over me.
I tried creating a new project tha...
I am looking to allow reordering of UITableViewCells and deleting via swipe to delete, but not via the red delete circle.
- (void)loadView
{
[super loadView];
[table setEditing:YES animated:NO];
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)i...
Is it possible to implement IPhone's push notification service for a
Webapp that has an icon on the "desktop"? If so how?
...
I have used rand(). But it gives a specific value even after I restart application.
I have implemented following in my application.
- (void)viewDidLoad {
[super viewDidLoad];
int x,y;
x=random() % 480; y=random() % 300;
lblT.center=CGPointMake(x,y); // my label lblT
}
Try to implement in your application, and launch application.
Af...
I have a game on the App Store, and for the next version I am working on having an option in the settings to use different skin. So for example, lets say I choose the basketball option. I would want the app to show the basketball .xib instead of the default view controller.
How would I do that? There would be about 4-5 different ski...
For several years, I've been facing problems with HTTP 1.1 pipelining & continued to ask the server to send the HTTP Header:
Connection: close
I want to revisit this decision. Does your native mobile apps use HTTP pipelining ?
Some problems with HTTP pipelining I've faced:
Server not releasing TCP connections
My client is receiving ...
Has anyone else come across this problem? ObjectAlloc climbs as a result of the CGBitmapContextCreateImage. Does Apple's software not fully releasing the objectalloc?
I am resizing images 12 times a second with a NSTimer. During resizing of the image I am also adding a photoshop like Gaussian blur effect by including interpolationQuali...