I have a view with which I have a button calling the following method. The view hides/shows but without any animation
- (void) displayEvent:(id)sender {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.5];
modal.hidden = !modal.hidden;
[UIView commitAnimations];
}
Any ideas?
...
Is there a way to specify the size of a UIAlert button?
Is there a way to specify the layout of buttons on UIAlert? Like having three buttons next to each other and a cancel button on the buttom?
...
Hello,
I am using an UIImageView to load an image with aspectfit. Hence the image does use the whole UIImageView surface. How to know what is the bounds of the image inside the UIImageView?
Thanks in advance
...
I would like to store my apps skin settings in a json file, how would I go about storing the enum values for colours/styles etc and cast them back from a string.
e.g how do I store MKPinAnnotationColorRed or UITableViewStyleGrouped
If its just a matter of storing the integer equivilent Im fine with that rather than actually storing the...
Hi,
sorry for this question, but i dont know where to search for it, or how to google it, because i dont have any idea how to search it.
with what class/viewController/API is such a "popup" built?
thanks for help :)
...
Hello everyone
i try to build a app that is in landsscape mode all the time.
I did the usual stuff:
plist added UIInterfaceOrientation / UIInterfaceOrientationLandscapeRight
rotated the XIBs in interface builder with the little arrow in top of view.
my code for launching:
- (void)applicationDidFinishLaunching:(UIApplication *)applicati...
hello all. i've decided to give this iPhone App development a kick. to help add perspective to this i've never programmed in any form of C or for any anything on the Mac other than Applescript. i've created plenty of solutions using blends of Applescript, Classic ASP, Perl, even PostScript. i'm home brewed so i don't understand all the m...
Hi,
I need a way of controlling video non-fullscreen in my application. I've played around with both MPMoviePlayerController and a solution using UIWebViews.
I have found one solution using MPMoviePlayerController where I can prevent the video from going full screen (by grabbing the key window and set a transform on the UIWindow objec...
I have a MyAppAppDelegate, it contains a window, and a UITabBarController.
@interface MyAppAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
IBOutlet UITabBarController *rootController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *rootCont...
I am using the following code (with ASIHTTPRequest) to attempt to upload php files from my iPhone to my LAN MAMP server running on my Macbook Pro. My objective-c and my php seem to be in line, but the files are not uploading.
OBJECTIVE-C CODE
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMas...
Hi,
When i selected a cell, i want to add the text from the cell to the underlying UIView at the same position.
So the text in the UIView should be at the same position as the text in the cell.
I dont know how to map the cell origin to a UIView origin point.
Anyone any hints?
Ton.
...
Hi,
How to skew the image? So, for example, each corner has CGPoint with it coords - p1, p2, p3, p4. Then, I need to set - p4.x+=50, p4.y+=30. So this corner (p4) should be stretched in 2D perspective and the image should be distorted.
I tried to use CATransform3D, but it seems that it's cannot be done in such way, since it's only ch...
How I can use this function
Im try but there are error or warning
setupchipmunk(){
........
}
update(){
if(touch==true){
cpBodyApplyForce(body1,cpv(val1,val2),cpv(val3,val4));
}
}
when touch begin in console I found this error
warning: Ignored unknown object module at 0x0 with type 0x5dd334
warning: Couldn't find minimal sy...
Hi,
is it possible to extract images or convert a video to a sequence of images using the iPhone API? The goal is to play a video using some kind of animation, instead of the builtin video players. The reason for doing this is that I need to playback a video at reduced speed.
FFMpeg is not an option.
Thank you for your time.
...
Hi
I have the following tableviewdelegate:
private class TableViewDelegate : UITableViewDelegate
{
private DaysViewController _dvc;
private List<DateTime> ConferenceDates;
public TableViewDelegate (DaysViewController controller, List<DateTime> dates)
{
_dvc = controller;
Confe...
how can i define a toolbar which is available in all nibs?
i have 4 button in my toolbar. one of them is for first view(nib1)and 3 of them are for second view(nib2).
...
Okay, of course it is possible, that's no issue. In my code I have multiple objects that I work with, and they need to be data persistent. To do that I've used object encoding and storing them in a data file. Such as:
-(NSString *)dataFilePath
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomai...
I have a startup view controller which has the following:
- (void)viewDidLoad {
[self loadMainMenu:nil];
[super viewDidLoad];
}
This does the following:
-(IBAction) loadMainMenu:(id) sender {
[self.view insertSubview:mainMenuViewController.view atIndex:0];
}
My mainMenu.h has the following:
-(IBAction) loadRules:(id)...
I would like to forward iphone users to a mobile version of my site with apache's RewriteCond %{HTTP_USER_AGENT} (...)
My question is, how would I redirect visitors of the mobile site back to the full site? Since they're on a mobile device, they'd just get re-routed to the mobile site again right?
Cheers,
Phil
...
Hi there,
I'm pretty new in IPhone Development, so maybe you can help me with this problem:
I'm having an object "preferences" that holds a single NSString:
(All code simplified...)
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface Preferences : NSObject {
NSString *username;
}
-(void)loadPreferences;
@propert...