I have a div for example, and when you pick it up to start dragging, it snaps the div so the cursor/mouse is in the middle of it.
This is the code..
// DEFINE DEFAULT VARIABLES
var _target=null, _dragx=null, _dragy=null, _rotate=null, _resort=null;
var _dragging=false, _sizing=false, _animate=false;
var _rotating=0, _width=0, _height...
I have a quite a big iPad application with about 20 xib's about 50 images. It has a login view and until its login page it loads only the images and language resources in to memory. When I load the application and after login view loaded it consumes about 40 MB's. Only the login view is in memory at that time. I noticed this memory from ...
Hello,
I have a problem with my application. I have a SplitViewControler with a NavigationController in its content. When I push a new ViewController and I want come back on my previous ViewController by clicking in previous button, the content changes correctly but my tabbar doesn't change and I must reclicking in order to obtain the c...
Basically, this is what I want: the screen divided into 3 areas (squares), where the contents (labels, buttons or other controls) rotate with the device.
in portrait:
x-top
x size 768x768
x-bottom
------------+--------------
y-top | z-top
y 384x384 | z 384x384
z-bot | z-bot
in landscape...
Heey,
Does anybody know how to start safari from a ipad application?
I wan't an info view in my application with a button to my website. The 'things' application does it, so i know it is possible.
Just don't know how.
Thanks
...
Heey,
Does anybody know how to reproduce the books animation?
I don't mean the page flip while reading. I mean the opening and closing of the cover while getting it from the bookshelf?
Instead of zooming in and out, i just want to flip it from the left side of the screen.
Thanks
...
Hello All,
So I am trying to save arrays into an NSDictionary on the fly. Let me show you the code and explain what is going on.
for (int x= 0; x <[appDelegate.people count]; x++) {
Person *aPerson = [[Person alloc] init];
aPerson = [appDelegate.people objectAtIndex:x];
if ([appDelegate.groupedBusiness objectForKey:aPerson...
Is there any way to disable that?
I only mean in the browser... When you click a link or a button or a div that has a click function on it, it flickers a grey box where you clicked quickly. How do i prevent this?
...
This is a pretty weird question I guess, but I've never really had to deal with memory allocation before so now I'm really paranoid about using too much of it or forgetting to deallocate stuff. I've found the extremely useful memory leak tool (and am quite proud to see that, so far at least, I'm not losing anything that way) and also the...
Scenario:
I have a UITabBar on the top of my view controller. There are a few buttons on the tabbar.
When the user taps on any of the button I want to display a popover just under the button that has been tapped.
I can display the pop over with no problem but I can't figure out how to detect the location of the button that has been pres...
I have a tabbar-based app with three tabs, one of them is a running clock. To animate the clock UI, I use an NSTimer that fires once a second. If the user will be switching in and out of the various tabs, how should I manage this timer?
Can I just use scheduledTimerWithTimeInterval to create and schedule the timer when the app is fi...
I'm building an app that uses a UIView that contains a UIScrollView within it so that when the keyboard shows up, users can still scroll downwards to see the content within the view. It seems like I have gotten everything perfectly set up but when I rotate, everything goes completely unusable. The views are all out of place and I am unsu...
Hi,
I am developing an iPad application. There are two classes D1 and D2 inheriting from same base class B. 'B' has an member variable 'm'. Both D1 and D2 are compiled as separate static libraries. When the main project tries to link to these libraries it gives duplicate symbol error for 'm'.
BFile.h
@interface B
{
int m;
}
@end
D1Fi...
hi,
I'm trying to create a chipmunk space with a bouncing ball.(Example seen here)
Currently my device is running in Landscape mode. So according to cocos2D everything is all right. When adding Sprites they orient to landscape mode.
[director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
The only problem is that the ...
Hi guys, i have this error but have no idea what it means.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x000790a0 __kill + 8
1 libSystem.B.dylib 0x00079090 kill + 4
2 libSystem.B.dylib 0x00079082 ra...
Hi guys
Everything is in the title, I doesn't understand what the statement below does:
#import "x.h"
#import "y.h"
#import "MyAppAppDelegate.h"
#import "z.h"
@implementation x
@class myClass;
Could someone explain me using simple words please? I'm quite new to iphone programming :s
...
I am new to iPad applications, I am doing one application which requires to send data from one ipad to another ipad. my application involves, when one person is presenting some presentation in his ipad it has to visible to all other persons which are having my application in their iPads. here we have one constraint that is we don't want ...
Is it common practice to do some kind of debouncing / refractory period for handling user touches?
I have a view based app with quite a few UI objects that are currently using touchUpInside to flip states. I notice that its almost easy to double touch or cycle the state more than once. Since the gameplay is relatively fast it doesn't ...
I have a quite a big iPad app and when I run the app in xcode debug mode, it shows about 50 MB in the Activity Monitor and memory grows slowly. (About 0.1 MB per 30 seconds approximately.) But when I run the app directly from the simulator(which is already installed in the simulator) , it shows about 10 MB in the activity monitor and mem...
I've got an NSArray setup in my code to display two PNG's alternately flashing, I'm trying to setup a piece of code that sets it to a hidden status, moves it off screen, anything to get it out of sight of the user.
The code for my array is
NSArray *imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"CONNECTED dark ye...