Is there a way in cocoa touch to implement view switching behavior like the one in iPhone's springboard? I mean horizontal scrolling with 'snap to view' animation (views are switched only after certain 'scrolling' threshold has been reached)
...
Is it possible to use an iPhone to connect and send data to a iPad? And how would you go about doing this?
Could you open a socket and connect to the iPad with its IP address? (iPads/iPhones have an ip address right?)
Go easy I'm new to network programming...
Thanks!
...
How can I compare an image to another one?
Thanks!
...
moveMe[639] <Error>: CGContextSaveGState: invalid context
moveMe[639] <Error>: CGContextSetBlendMode: invalid context
moveMe[639] <Error>: CGContextSetAlpha: invalid context
moveMe[639] <Error>: CGContextTranslateCTM: invalid context
moveMe[639] <Error>: CGContextScaleCTM: invalid context
moveMe[639] <Error>: CGContextDrawImage: invalid ...
So I'm currently testing out the UIView animations, and I noticed that the shadows rendered by CALayer (using [view.layer setShadowStuffHere]) disappear at the start of the animation and reappear at the end of the animation. Is there any way I can keep these shadows and have the shadows animate along with the UIView? I tried using shadow...
Does anybody know why a UIPopover or UIActionSheet presented from a UIBarButtonItem in a toolbar in the inputAccessoryView doesn't rotate along with all the other view controllers?
The steps to reproduce this are:
In an Xcode iPad project, add a UILabel editable text field in IB.
Also in IB, add a UIToolbar with a UIBarButtonItem.
In...
Hi,
In my iPad app, I need to run some layout code to set the proper layout depending on the orientation. By default, the layout is configured for the landscape orientation, so in the case that the app starts in portrait mode, I need to take extra action to configure the views properly for display in portrait.
In my -application:didFin...
So I've got an NSFetchedResultsController that I activate on ViewDidLoad with the managedobjectcontext that has been passed on from the appdelegate on load.
I put a predicate on some field let's call it "sectionNumber" and say it needs to equal 1 in my predicate.
NSFetchResultsController works fine until I add a new object to the MOCon...
I have an app that is playing archived *.mov files from a server. Some of them are longer than 10 minutes. Is this ok? Can anyone point me to the guidelines for playing video?
...
I have an nsstring with 50 of lines i want to scan a particular string using nsscanner scanning each lines.
Is it possible ?
Can anyone help me?
Thanks in advance......
...
Hello,
I was wondering how I could access the iPhone's Home Screen Image so that I can use it as the background for my application. In short, access the NSImage that represents the home screen's wallpaper.
Thanks.
...
Hello,
I want to show SplitViewController view. But I don't want my SplitViewController as the rootView Controller . I want UInavigationViewController as rootViewController and want to present SplitViewController view after first view. Is this possible ?
...
What is the best-practice for placing ads in your table view cells? Here's my code, which works until the banner receives the transitionToNextBanner event, which then crashes my app.
UITableViewCell *cell = [tableVw dequeueReusableCellWithIdentifier:@"BannerAdCellIdentifier"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWit...
I want to apply a special background to the first cell in my UITableView:
I am applying the bg in:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
This is how it is applied:
if (indexPath.row == 1) {
cell.contentView.backgroundColor = [[UIColor alloc] initWithPatternI...
Hi,
I am using CoreData but I don't think I got the inverse relationship concept right.
Could any one explain what is it?
Let's say I have a "File" entity
with "files" relationship and "parentFile" relationship
"File" entity has:
a to-many relationship "files" with itself ("File").
a to-one relationship "parentFile" with itself ("Fil...
I'm using the following code to move an UIImageView across screen. With this code it rockets across the screen but I want it to slowly move. What do I need to do?
[UIView beginAnimations:@"slide-up" context:NULL];
astroid_1.center = CGPointMake(astroidPosX,astroidPosY); // change this to somewhere else you want.
[UIView...
How can one emulate the UITableViewCell(s) used when bulk editing (All Inboxes > Edit) in the Mail App. Specifically, the hollow circles that fill with a red filling and white checkmark when selected (and the cell also changes to a blue tint). Is it possible do this with existing disclosure? Thanks.
...
Hi, I'm still very new to cocoa touch so please excuse any terminology that I may have got wrong.
I have a bunch of images in my bundle consecutively named image0.png, image1.png etc...
I have a picker in a viewcontroller and an instance variable that keeps track of the current row.
When a user clicks a button I want to be able to cre...
I use the following code to animate a flip transition on a view:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self.view addSubview:anotherViewController.view];
[UIView commitAnimations];
However, when I...
I am getting an interesting crash that I can never seem to replicate on the simulator:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000008
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3212e86c 0x3212c000 + 10348
1 StockTwits 0x00016b06 0x10...