I'm trying to add a small shadow to an image, much like the icon shadows in the App Store. Right now I'm using the following code to round the corners of my images. Does anyone know how I can adapt it to add a small shadow?
- (UIImage *)roundCornersOfImage:(UIImage *)source height:(int)height width:(int)width {
int w = width;
int h = h...
I am creating a quiz game and I can't figure out the best way to implement UIButtons that disappear one by one at 3 second intervals. I can get the first UIButton to disappear after 3 seconds, but the subsequent UIButtons take considerably longer.
I believe the problem is that my code becomes more inefficient with each UIButton I make ...
If anyone has used the iPhone's SMS app, there is a special animation with the compose view.
When you first press compose, a modal view controlelr is shown. However as soon as you press send, it shifts to your chat view controler. But here are a few weird behavior:
1) The keybaord stays intact. Usually when you pop and push new contro...
As a practical example, in UIView, drawRect is called when setNeedsDisplay is set. I want a different drawRect routine to be called for the first time vs. the subsequent update. So for example, I want drawRect to call drawRectFirstTime for the first time and drawRect to call drawRectSubsequentUpdate for subsequent setNeedsDisplay.
How ...
How to create bubbble message box similar to iPhone buildin SMS app?
I'm trying to create a table cells with a bubble message box, similar to the iPhone SMS app or iChat.
Anybody have example code I can refer to?
...
Hi there, I've got a simple app that's trying to save some data between invocations using NSKeyedArchiver/NSKeyedUnarchiver. It works fine on the simulator, but when I export it to real iPhone hardware, NSKeyedArchiver fails to be able to write to disk.
I'm using the class method
[NSKeyedArchiver archiveRootObject:myRootObject toFi...
I have a working code for switch & rotate views.
I want to implement in landscape mode a picture showcase, similar to the one in the iPhone music app (but more simply than in coverflow).
Currently, in landscape the nav bar is there, and the controls not fade when a seconds pass. I want a end-user experience similar to the music app, w...
What is the easiest and most practical way to implement smooth frame-based animation on the iPhone? I know that image sequences are easy to do, but if I have say 30 images flashing per second (30 fps) for 5 seconds, will it freeze up? Are there massive memory implications with this method?
I'm designing a game that will be mostly static...
I have some music that loops. The .wav file size is about 8 meg. I load this and just loop it... everything was working fine until I added another 4 meg .wav file. Now the game crashes... removing the additional audio file fixed the crashing.
So how can I reduce the size of these .wav files? I thought about releasing the memory afte...
Hi there,
I have the following problem:
A UIView with a UIViewController, but I have another view, something like an customized keyboard, and this "keyboard" have another UIViewController associated.
I'm adding this keyboard to the original UIView like that
CustomizedKeyboard *customized = [[CustomizedKeyboard alloc] initWithNibName:@...
i want to play sound according to text of the label.is this possible to generate sound from text.?
...
UIButton *ticketButtonObj=
[[UIButton alloc]initWithFrame:CGRectMake(140.0f 100.0f, 390.0f, 40.0f)];
UIImage *buttonicon1=[UIImage alloc];
buttonicon1=[UIImage imageNamed:@"Generalticket.png"];
how can set background of ticketButtonObj with buttonicon1 .. in left alignment ?
pls help me... thanks and regards by raju.
...
hello all i am new to iphone development i am working on a application called flash cards...
my problem is i want to generate flash cards from database...
here is some code to explain
home screen----
index View
categoryView
TileView
bookmarks
search
download
indexView is a uitableView
category1(section header tit...
Hi All,
I have a UIView with multiple text boxes. Now i have used delegates to change the responder from from text field to another. In this case my key board goes away when the user comes to last text field.
but now i want to hide my key board when the user touches UIView(touches any where on screen apart from text boxes). Can some on...
Hi Everyone.
I'm a beginner at C, Obj-C and the iPhone, and I'm trying getting to grips with a lot of terminology used. I hope one of ye can help with a problem I have been struggling with for a few days now.
My code below is a method which call up a nib containing a search field and a table. The table is populated from a search of the...
Hey there,
I'm trying to mix between UIImageView drawing and line drawing using CGContext path draw commands, but the draw order is not correct.
I need to draw the path on top of the images but get the reverse.
The way I implemented it:
Setting UIImage within a UIImageView and adding the UIImageView as a subview of the main view.
Ne...
I use an UILabel to show my text, in a multi-line and UILineBreakModeWordWrap mode, and the maximum width is 200.
For example, here is the text:
I really really want to underline first word and second word, could you help me?
And I want to underline "first word" and "second word".
If the text is shown in a single-line mode, with siz...
I would like to know if there's any way to change the height of a Segment Control, or perhaps changing the font size of the control?
Thanks.
...
i have some database and i am genrating data something like this.
first getting categoryid and categoryName form the database. and sectiontitle of the table is
categoryName
hrer is sample code
(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return categoryNamesList.count;
}
-(NSString *) tableView:(UITableView *)t...
I'm looking for an open source or free OCR project for the iPhone. Maybe there is some port of tesseract-ocr for the iPhone?
What I've found so far:
How to compile Unix Apps for iPhone
Thanks for any help.
...