I have a UIImageView that I have resized to fit a small ball. The current background is black color. I want to set the background as some image and then move the ball on top of that image. I tried to use another UIImageView but the background takes over the ball image and the ball is not visible. Any ideas!
...
I'm changing components (in particular, the number and color of components), in a UIPickerView that I call pickerOne, so after making the changes, I call:
[pickerOne reloadData];
and it appears to be working perfectly however, I'm getting a compile warning:
warning: 'UIPickerView' may not respond to '-reloadData'
Although this appe...
Hello guys,
I have TableCellViewController for managing cells in my UITableView. Each cell has a label na UISwitch (dictTypeSwitch). A want to assign method to switch events so I can save the state of button.
So far I've done this:
assign setState function to object:
[cell.dictTypeSwitch addTarget:self action:@selector(setState:) for...
When rebuilding a perfectly working iPhone project on iOS 4 SDK, I found out that fstat() returns a bogus value in the stat.st_size field. Observed on iPhone 3 simulator with iOS 4. Looks like there's a discrepancy between the binary layout of the stat structure in the program and in the API. I've found a workaround (lseek() to the end),...
Upgrading to XCode 3.2.3 and iPhone 3.2/4.0 SDK has introduced a strange bug into my build process.
I have a static library, Compton, which itself depends on three20. I build Compton as a dependency of the client apps that it powers.
When I compile Compton as its own project in either simulator or device mode, 3.2 or 4.0 SDK, everythi...
Hi,
I am using the SystemSound's framework to play sounds in my application. For devices with IOS3 it is working correctly. But recently I've updated the operating system to IOS4
and I am having a strange problem with the volume. Now I can't change the volume of my sounds during the game, it seems that this framework is using the ring v...
Hey I have these UIView objects in a dictionary I have created as such:
- (NSArray *)createNumberOfViews:(NSInteger)number
{
NSMutableArray *viewArray = [NSMutableArray array];
for(NSInteger i = 0; i < number; i++)
{
UIView *view = [[UIView alloc] init];
// any setup you want to do would go here, e.g.:
// view.backgroundColo...
Hi,
I'm using compiled openssl for an iphone app, I followed instruccions here http://www.x2on.de/kontakt/ so I could develop rsa operation on iphone simulator. the problem is that I get this error when building the proyect
_fopen$UNIX2003 referenced from
_BIO_new_file in libcrypto_i386.a(bss_file.o)
_file_ctrl in libcrypto_...
There are a number of questions regarding the "wait_fences: failed to receive reply" on this forum already, but none of the proposed solutions work for me (although they did help me to mitigate it).
When my app starts up, I do a reachability check, and if I can't reach the host I'm looking for, I pop up a UIAlertView. Initially I was do...
I am truing to use a c function in a .c file from within my objective-c class.
I have imported the header for the c file. but I am still getting a problem and my program would not compile.
Undefined symbols:
"gluUnProject(float, float, float, float const*, float const*, int const*, float*, float*, float*)", referenced from:
-[GL...
I used Unity iPhone(1.7) to build an app and brought it into Xcode (3.2.3). When the game is built out, Unity creates an appController file automatically and in it, a window is created which displays the game. When I launch the game, I can clearly see when I rotate the device that the window is rotating as well. The game elements themsel...
Hi there. I am trying to figure out how to use the UIIMagePicker or some way to use the iPhone 4's Backlight LED. I am trying to use a UIView with a button on it to turn the LED on & off without showing any video. Is this even possible? Any help?
EDIT
I've been using AVCaptureDevice class or at least trying to. When it comes to importi...
If I am not wrong, Apple imposes a limit of 200 mb on the size applications can have. I am planning to include some videos in one of my apps and the videos include several large segments of 10 or 20 minutes.
If I encode these videos for ipad (720p) and for iPhone 4 (1024x768) do you guys have an idea of how much space a minute using one...
[update: this problem has been resolved; the issue was not in drawInRect: but in UIGraphicsBeginImageContext()]
In my app, I'm grabbing a bunch of large images, cropping them down to thumbnail size and storing the thumbnails for previewing.
Note that I'm doing this in a separate image context -- this is not about redrawing a UIView th...
I want to call an action in two classes (a superview and a full screen subview) when the user single taps the screen. But, when I add a UITapGestureRecognizer to the subview, the one added to the superview is overridden. Is it possible to add a UITapGestureRecognizer to a subview without overriding the UITapGestureRecognizer added to the...
So I'm trying to port an existing iphone application to the ipad. When I run the targeted device set to ipad, only the top left corner of the screen is usable, (the size of the iphone). However, all table cells, objects and buttons exted out to the width of the ipad. But that area is not responsive. What am I doing wrong?
I also tried a...
The interface of my iPad app has multiple section boxes (looks similar to this stackoverflow page). I'm new to xcode and iOS programming but have years of web development experience. I would like to know what is the best way to design this.
Should I put everything in one xib file? (section1headerlabel, section1text1,section1text2..)
...
I have a UIScrollView that contains a subview that I want to fill with a texture.
- (void)drawRect:(CGRect)rect {
CGImageRef image_to_tile_ret_ref = CGImageRetain(wood.CGImage);
CGRect tile_rect;
tile_rect.size = wood.size;
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextBeginPath(context);
CGC...
I have a tableView with some large images in it. I'm struggling to improve the very jerky scrolling performance. If I use ImageNamed to load the images, scrolling is jerky at first, but after the images are viewed, scrolling is smooth. I know ImageNamed adds the images into the system cache, so my question is: is it possible to pre-load ...
I am looking for some way to automatically launch the app store on an iPhone from within an app. For example, the user logs in using the app, and the server requires a specific version of the app. Can I open the app store, or grab the upgrade automatically, or does the user need to go through the app store manually?
Thanks in advance,
...