Is there a way to navigate within a webview using paging - like UIScrollView's 'pagingEnabled'?
There are several suggestions out there about setting this parameter on UIWebViews internal scrollview,
but this solution does not work e.g. in the case that you set the webcontent offset using javascript.
In this case, the first tap on the s...
Hello, I'm attempting to create a 3d game using OpenGL. I have a very basic world and am now working on a character. I want to map a texture to the head which will be oval shaped. How do I do the mapping? I know how to map to flat surface. I'm wondering if the normals can be used to help but I've never done this before and when I se...
I am making an iPhone app that is designed for things that will be local to only Missouri. So my idea is to limit the map to only Missouri/regions close to Missouri. I have the map working fine, displaying the user's location, and if they update location then the pin will also move. Can I use something like a Custom Annotation to do t...
I am trying to work through some of the AppsAmuck tutorials but they mostly seem to use code that Apple has deprecated. For example, there is a function that is called by a timer every second that looks like this:
NSDate *now = [NSDate date];
int hour = 23 - [[now dateWithCalendarFormat:nil timeZone:nil] hourOfDay];
int min = 5...
Is There a method to simulate scrolling on a tableview?
I'm using custom cell!
...
Is it a good practice to use one main AppDelegate.h to handle all the ibaction stuff?
is it even possible? if so who does one do this? my IB only lets me link to the associated .m file
firstView.xib only respond to ibaction in firstView.m
I want a button on firstView.xib to respond to ibaction in AppDelegate.m
any thoughts?
...
Hi, I'm having trouble retrieving a saved NSMutableArray containing a custom object. The app crashes and the console reports http://pastie.org/1226822. Here is my objects .h file http://pastie.org/1226823. Here is my objects .m file http://pastie.org/1226826. Here is how I save my data http://pastie.org/1226830. Here is how I retrieve my...
I want to sync the Core Data on iPhone with MongoDB on Sinatra server.
When the iPhone gets a message from the Node.js chat server, the message contains the sender's BSON ObjectId (a string). For the iPhone to store this message, I find the user with that same Id in Core Data. I want to be able to do something like objectWithID. In othe...
localNotification.soundName doesn't support sound with duration more than 30 second
Is there any way to solve this problem ?
...
I have a UIWebView which loads a html string on viewDidLoad. It detects if the user clicks a link and display a modal view, but when i close the modal view the UIWebView's html has gone! If i use a FormSheet Modal Style the content stays behind, its only fullscreen modals that cause this. Obviously i can just input the html string again ...
Hi there,
I have a transformable attribute on one of my entities, called reminder. It's a UILocalNotification.
Now, since I want to schedule it when it's added, and cancel it when removed, I would like to override the accessors to handle the scheduling and cancelling in there.
How would that look?
Thanks!
...
OSStatus recordingCallback(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
{
SInt16 noi= SInt16(inTimeStamp->mSampleTime);
printf("\n%d", noi);
noi= SInt16(inTimeStamp->mRateScalar);
...
Previously I've used the tap Detecting Window technique to detect taps in a UIWebView, but now I've tried to use gesture recognizers instead. The following code is in the viewDidLoad method of a view controller, which has a single UIWebView. This code compiles fine, but the handleTap method is never called. This seems like it should be ...
Hi there,
I have a little problem with NSUndoManager.
When the user is about to edit some entity A, I stick everything into an undo grouping so that the changes can easily be undone. So far so good.
However, while the user is editing entity A, he can also add or edit items of entity B, where A has many B and B belongs to many A. That r...
Hi,
Is there any any way to add a TextView to application settings in Iphone. According to Apple's documentation, I can only find TextField, but not TextView. I have tried several key values like PSTextViewSpecifier, but no luck. Any help is greatly appreciated.
...
I have an xml file that contains lots of data. Inside one of the tags I have some simple html.
<Xml>
<post>
<author>Billybob</author>
<postContent>
<![CDATA[
<!--cached-Sat, 16 Oct 2010 17:20:25 +0000-->
<br />
<a href= 'http://google.com/ ' cla...
I'm trying to create a button programmatically and cannot change the origin. Here's the code:
UIButton *newButton = [UIButton buttonWithType:UIButtonTypeCustom];
newButton.frame = CGRectMake(100, 200, 150, 50);
[newButton setTitle:@"Hi There" forState:UIControlStateNormal];
[self.view addSubview:newButton];
The button shows up, but c...
Hi,
Is there any way in iPhone to unselect all tabs of a UITabBarController ? ie, my application has a "homepage" which does not belong to any tabs on the below displayed tabbar. Now when user touches any tab on the tabbar, I would like to load the corresponding tab. Is this possible ? I have already tried:
self.tabBarController.tabBar...
Hi,
It looks simple thing but i dont know why i am not able to change the background color of a custom tag on which i am working. Please check my code below for the custom cell.
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuse...
I see this log in the console when I run my app:
CALayer position contains NaN: [nan -0.5]
The app consists of a UITabar of which the first tab is a UINavController. In the NavController I'm launching the AddressBookPicker. In the Addressbook picker I'm only choosing to show phone numbers.
When I choose on a contact that has only email...